bevy_render::render_resource::encase::internal

Trait CreateFrom

Source
pub trait CreateFrom: Sized {
    // Required method
    fn create_from<B>(reader: &mut Reader<B>) -> Self
       where B: BufferRef;
}

Required Methods§

Source

fn create_from<B>(reader: &mut Reader<B>) -> Self
where B: BufferRef,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl CreateFrom for Option<NonZero<i32>>

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Option<NonZero<i32>>
where B: BufferRef,

Source§

impl CreateFrom for Option<NonZero<u32>>

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Option<NonZero<u32>>
where B: BufferRef,

Source§

impl CreateFrom for f32

Source§

fn create_from<B>(reader: &mut Reader<B>) -> f32
where B: BufferRef,

Source§

impl CreateFrom for i32

Source§

fn create_from<B>(reader: &mut Reader<B>) -> i32
where B: BufferRef,

Source§

impl CreateFrom for u32

Source§

fn create_from<B>(reader: &mut Reader<B>) -> u32
where B: BufferRef,

Source§

impl CreateFrom for LinearRgba

Source§

fn create_from<B>(reader: &mut Reader<B>) -> LinearRgba
where B: BufferRef,

Source§

impl CreateFrom for Mat3
where Mat3: ShaderType<ExtraMetadata = MatrixMetadata> + FromMatrixParts<f32, 3, 3>, f32: MatrixScalar + CreateFrom,

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Mat3
where B: BufferRef,

Source§

impl CreateFrom for Mat2
where Mat2: ShaderType<ExtraMetadata = MatrixMetadata> + FromMatrixParts<f32, 2, 2>, f32: MatrixScalar + CreateFrom,

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Mat2
where B: BufferRef,

Source§

impl CreateFrom for Mat4
where Mat4: ShaderType<ExtraMetadata = MatrixMetadata> + FromMatrixParts<f32, 4, 4>, f32: MatrixScalar + CreateFrom,

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Mat4
where B: BufferRef,

Source§

impl CreateFrom for Vec4

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Vec4
where B: BufferRef,

Source§

impl CreateFrom for Vec2

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Vec2
where B: BufferRef,

Source§

impl CreateFrom for Vec3

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Vec3
where B: BufferRef,

Source§

impl CreateFrom for IVec2

Source§

fn create_from<B>(reader: &mut Reader<B>) -> IVec2
where B: BufferRef,

Source§

impl CreateFrom for IVec3

Source§

fn create_from<B>(reader: &mut Reader<B>) -> IVec3
where B: BufferRef,

Source§

impl CreateFrom for IVec4

Source§

fn create_from<B>(reader: &mut Reader<B>) -> IVec4
where B: BufferRef,

Source§

impl CreateFrom for UVec2

Source§

fn create_from<B>(reader: &mut Reader<B>) -> UVec2
where B: BufferRef,

Source§

impl CreateFrom for UVec3

Source§

fn create_from<B>(reader: &mut Reader<B>) -> UVec3
where B: BufferRef,

Source§

impl CreateFrom for UVec4

Source§

fn create_from<B>(reader: &mut Reader<B>) -> UVec4
where B: BufferRef,

Source§

impl CreateFrom for Wrapping<i32>

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Wrapping<i32>
where B: BufferRef,

Source§

impl CreateFrom for Wrapping<u32>

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Wrapping<u32>
where B: BufferRef,

Source§

impl CreateFrom for AtomicI32

Source§

fn create_from<B>(reader: &mut Reader<B>) -> AtomicI32
where B: BufferRef,

Source§

impl CreateFrom for AtomicU32

Source§

fn create_from<B>(reader: &mut Reader<B>) -> AtomicU32
where B: BufferRef,

Source§

impl<T> CreateFrom for Cow<'_, T>
where T: ToOwned<Owned = T> + CreateFrom + ?Sized,

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Cow<'_, T>
where B: BufferRef,

Source§

impl<T> CreateFrom for [T]
where T: CreateFrom, [T]: FromIterator<T> + ShaderType<ExtraMetadata = ArrayMetadata>,

Source§

fn create_from<B>(reader: &mut Reader<B>) -> [T]
where B: BufferRef,

Source§

impl<T> CreateFrom for Box<T>
where T: CreateFrom + ?Sized,

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Box<T>
where B: BufferRef,

Source§

impl<T> CreateFrom for LinkedList<T>
where T: CreateFrom, LinkedList<T>: FromIterator<T> + ShaderType<ExtraMetadata = ArrayMetadata>,

Source§

fn create_from<B>(reader: &mut Reader<B>) -> LinkedList<T>
where B: BufferRef,

Source§

impl<T> CreateFrom for VecDeque<T>
where T: CreateFrom, VecDeque<T>: FromIterator<T> + ShaderType<ExtraMetadata = ArrayMetadata>,

Source§

fn create_from<B>(reader: &mut Reader<B>) -> VecDeque<T>
where B: BufferRef,

Source§

impl<T> CreateFrom for Rc<T>
where T: CreateFrom + ?Sized,

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Rc<T>
where B: BufferRef,

Source§

impl<T> CreateFrom for Arc<T>
where T: CreateFrom + ?Sized,

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Arc<T>
where B: BufferRef,

Source§

impl<T> CreateFrom for Vec<T>
where T: CreateFrom, Vec<T>: FromIterator<T> + ShaderType<ExtraMetadata = ArrayMetadata>,

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Vec<T>
where B: BufferRef,

Source§

impl<T> CreateFrom for Cell<T>
where T: Copy + CreateFrom + ?Sized,

Source§

fn create_from<B>(reader: &mut Reader<B>) -> Cell<T>
where B: BufferRef,

Source§

impl<T, const N: usize> CreateFrom for [T; N]
where T: CreateFrom, [T; N]: ShaderType<ExtraMetadata = ArrayMetadata>,

Source§

fn create_from<B>(reader: &mut Reader<B>) -> [T; N]
where B: BufferRef,

Implementors§

Source§

impl CreateFrom for IndirectParameters
where Self: ShaderType<ExtraMetadata = StructMetadata<5usize>>, for<'__, '__, '__, '__, '__> u32: CreateFrom,

Source§

impl CreateFrom for PreprocessWorkItem
where Self: ShaderType<ExtraMetadata = StructMetadata<2usize>>, for<'__, '__> u32: CreateFrom,

Source§

impl CreateFrom for GlobalsUniform
where Self: ShaderType<ExtraMetadata = StructMetadata<3usize>>, for<'__, '__> f32: CreateFrom, for<'__> u32: CreateFrom,

Source§

impl CreateFrom for ViewUniform
where Self: ShaderType<ExtraMetadata = StructMetadata<13usize>>, for<'__, '__, '__, '__, '__, '__, '__> Mat4: CreateFrom, for<'__> Vec3: CreateFrom, for<'__, '__> f32: CreateFrom, for<'__> Vec4: CreateFrom, for<'__> [Vec4; 6]: CreateFrom, for<'__> ColorGradingUniform: CreateFrom,

Source§

impl CreateFrom for ArrayLength