bevy_render::render_resource::encase::internal

Trait ReadFrom

Source
pub trait ReadFrom {
    // Required method
    fn read_from<B>(&mut self, reader: &mut Reader<B>)
       where B: BufferRef;
}

Required Methods§

Source

fn read_from<B>(&mut self, reader: &mut Reader<B>)
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 ReadFrom for Option<NonZero<i32>>

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for Option<NonZero<u32>>

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for f32

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for i32

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for u32

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for LinearRgba

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

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

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

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

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

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

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for Vec4

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for Vec2

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for Vec3

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for IVec2

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for IVec3

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for IVec4

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for UVec2

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for UVec3

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for UVec4

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for Wrapping<i32>

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for Wrapping<u32>

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for AtomicI32

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl ReadFrom for AtomicU32

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl<T> ReadFrom for &mut T
where T: ReadFrom + ?Sized,

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl<T> ReadFrom for [T]
where T: CreateFrom + ReadFrom, [T]: Truncate + Length + Extend<T> + ShaderType<ExtraMetadata = ArrayMetadata>, &'a mut [T]: for<'a> IntoIterator<Item = &'a mut T>,

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

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

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl<T> ReadFrom for LinkedList<T>
where T: CreateFrom + ReadFrom, LinkedList<T>: Truncate + Length + Extend<T> + ShaderType<ExtraMetadata = ArrayMetadata>, &'a mut LinkedList<T>: for<'a> IntoIterator<Item = &'a mut T>,

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl<T> ReadFrom for VecDeque<T>
where T: CreateFrom + ReadFrom, VecDeque<T>: Truncate + Length + Extend<T> + ShaderType<ExtraMetadata = ArrayMetadata>, &'a mut VecDeque<T>: for<'a> IntoIterator<Item = &'a mut T>,

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl<T> ReadFrom for Vec<T>
where T: CreateFrom + ReadFrom, Vec<T>: Truncate + Length + Extend<T> + ShaderType<ExtraMetadata = ArrayMetadata>, &'a mut Vec<T>: for<'a> IntoIterator<Item = &'a mut T>,

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

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

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

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

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl ReadFrom for ArrayLength