Byteable

Trait Byteable 

Source
pub trait Byteable {
    // Required method
    fn bytes(&self) -> Vec<u8> ;
}
Expand description

A trait for converting to bytes an object.

Required Methods§

Source

fn bytes(&self) -> Vec<u8>

Return the memory representation as a byte array in little-endian byte order.

Implementations on Foreign Types§

Source§

impl Byteable for i32

Source§

fn bytes(&self) -> Vec<u8>

Source§

impl Byteable for String

Source§

fn bytes(&self) -> Vec<u8>

Source§

impl<T> Byteable for [T]
where T: Byteable,

Source§

fn bytes(&self) -> Vec<u8>

Implementors§