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,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ReadFrom for Option<NonZeroI32>

source§

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

source§

impl ReadFrom for Option<NonZeroU32>

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 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 Color

source§

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

source§

impl ReadFrom for ColorGrading
where Self: ShaderType<ExtraMetadata = StructMetadata<4usize>>, for<'__> f32: ReadFrom,

source§

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

source§

impl ReadFrom for ArrayLength