bevy_render::render_resource::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<NonZero<i32>>

Source§

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

Source§

impl WriteInto for Option<NonZero<u32>>

Source§

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

Source§

impl WriteInto for f32

Source§

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

Source§

impl WriteInto for i32

Source§

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

Source§

impl WriteInto for u32

Source§

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

Source§

impl WriteInto for LinearRgba

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl WriteInto for Vec4

Source§

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

Source§

impl WriteInto for Vec2

Source§

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

Source§

impl WriteInto for Vec3

Source§

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

Source§

impl WriteInto for IVec2

Source§

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

Source§

impl WriteInto for IVec3

Source§

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

Source§

impl WriteInto for IVec4

Source§

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

Source§

impl WriteInto for UVec2

Source§

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

Source§

impl WriteInto for UVec3

Source§

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

Source§

impl WriteInto for UVec4

Source§

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

Source§

impl WriteInto for Wrapping<i32>

Source§

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

Source§

impl WriteInto for Wrapping<u32>

Source§

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

Source§

impl WriteInto for AtomicI32

Source§

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

Source§

impl WriteInto for AtomicU32

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§

Source§

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

Source§

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

Source§

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

Source§

impl WriteInto for ColorGradingUniform
where Self: ShaderType<ExtraMetadata = StructMetadata<10usize>>, for<'__> Mat3: WriteInto, for<'__, '__, '__, '__, '__> Vec3: WriteInto, for<'__> Vec2: WriteInto, for<'__, '__, '__> f32: WriteInto,

Source§

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

Source§

impl WriteInto for ArrayLength