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

Source§

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

Source§

impl ReadFrom for Option<NonZeroU32>

Source§

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

Source§

impl ReadFrom for f32

Source§

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

Source§

impl ReadFrom for i32

Source§

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

Source§

impl ReadFrom for u32

Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

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

Available on crate feature glam only.
Source§

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

Source§

impl ReadFrom for Vec4

Available on crate feature glam only.
Source§

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

Source§

impl ReadFrom for Vec2

Available on crate feature glam only.
Source§

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

Source§

impl ReadFrom for Vec3

Available on crate feature glam only.
Source§

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

Source§

impl ReadFrom for IVec2

Available on crate feature glam only.
Source§

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

Source§

impl ReadFrom for IVec3

Available on crate feature glam only.
Source§

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

Source§

impl ReadFrom for IVec4

Available on crate feature glam only.
Source§

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

Source§

impl ReadFrom for UVec2

Available on crate feature glam only.
Source§

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

Source§

impl ReadFrom for UVec3

Available on crate feature glam only.
Source§

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

Source§

impl ReadFrom for UVec4

Available on crate feature glam only.
Source§

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

Source§

impl ReadFrom for Wrapping<i32>

Source§

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

Source§

impl ReadFrom for Wrapping<u32>

Source§

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

Source§

impl ReadFrom for AtomicI32

Source§

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

Source§

impl ReadFrom for AtomicU32

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§