[]Trait bevy::core::Bytes

pub trait Bytes {
    pub fn write_bytes(&self, buffer: &mut [u8]);
pub fn byte_len(&self) -> usize; }

Converts the implementing type to bytes by writing them to a given buffer

Required methods

pub fn write_bytes(&self, buffer: &mut [u8])

Converts the implementing type to bytes by writing them to a given buffer

pub fn byte_len(&self) -> usize

The number of bytes that will be written when calling write_bytes

Loading content...

Implementations on Foreign Types

impl<T> Bytes for Vec<T, Global> where
    T: Byteable

impl<T> Bytes for Option<T> where
    T: Bytes

Loading content...

Implementors

impl Bytes for ColorSource

impl Bytes for Mat4

impl<T> Bytes for T where
    T: Byteable

Loading content...