Trait encase::internal::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,

Object Safety§

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,

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,

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,

source§

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

source§

impl ReadFrom for Vec4

source§

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

source§

impl ReadFrom for Vec2

source§

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

source§

impl ReadFrom for Vec3

source§

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

source§

impl ReadFrom for IVec2

source§

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

source§

impl ReadFrom for IVec3

source§

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

source§

impl ReadFrom for IVec4

source§

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

source§

impl ReadFrom for UVec2

source§

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

source§

impl ReadFrom for UVec3

source§

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

source§

impl ReadFrom for UVec4

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 + ?Sized + 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§