encase::internal

Trait WriteInto

Source
pub trait WriteInto {
    // Required method
    fn write_into<B>(&self, writer: &mut Writer<B>)
       where B: BufferMut;
}

Required Methods§

Source

fn write_into<B>(&self, writer: &mut Writer<B>)
where B: BufferMut,

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 WriteInto for Option<NonZeroI32>

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for Option<NonZeroU32>

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for f32

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for i32

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for u32

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

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

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

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

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

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

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for Vec4

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for Vec2

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for Vec3

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for IVec2

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for IVec3

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for IVec4

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for UVec2

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for UVec3

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for UVec4

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for Wrapping<i32>

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for Wrapping<u32>

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for AtomicI32

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl WriteInto for AtomicU32

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

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

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

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

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

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

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl<T> WriteInto for [T]
where T: WriteInto, Self: ShaderType<ExtraMetadata = ArrayMetadata>, for<'a> &'a Self: IntoIterator<Item = &'a T>,

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

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

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl<T> WriteInto for LinkedList<T>
where T: WriteInto, Self: ShaderType<ExtraMetadata = ArrayMetadata>, for<'a> &'a Self: IntoIterator<Item = &'a T>,

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl<T> WriteInto for VecDeque<T>
where T: WriteInto, Self: ShaderType<ExtraMetadata = ArrayMetadata>, for<'a> &'a Self: IntoIterator<Item = &'a T>,

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

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

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

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

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

impl<T> WriteInto for Vec<T>
where T: WriteInto, Self: ShaderType<ExtraMetadata = ArrayMetadata>, for<'a> &'a Self: IntoIterator<Item = &'a T>,

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

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

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Source§

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

Source§

fn write_into<B: BufferMut>(&self, writer: &mut Writer<B>)

Implementors§