[][src]Trait bevy_core::Bytes

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

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

Required methods

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

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

fn byte_len(&self) -> usize

The number of bytes that will be written when calling write_bytes

Loading content...

Implementations on Foreign Types

impl Bytes for Mat4[src]

impl<T> Bytes for Option<T> where
    T: Bytes
[src]

impl<T> Bytes for Vec<T> where
    T: Sized + Byteable
[src]

Loading content...

Implementors

impl<T> Bytes for T where
    T: Byteable
[src]

Loading content...