Trait std::to_bytes::ToBytes

pub trait ToBytes {
    fn to_bytes(&self, lsb0: bool) -> ~[u8];
}

A trait for converting a value to a list of bytes.

Required Methods

fn to_bytes(&self, lsb0: bool) -> ~[u8]

Converts the current value to a list of bytes. This is equivalent to invoking iter_bytes on a type and collecting all yielded values in an array

Implementors