Trait AsBytes

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

Serialize function without args Used for serialization when formatting options are not relevant

Required Methods§

Source

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

Default serialize without args

Implementations on Foreign Types§

Source§

impl AsBytes for u32

Source§

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

Source§

impl AsBytes for u64

Source§

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

Implementors§