Trait bebytes::BeBytes

source ·
pub trait BeBytes {
    // Required methods
    fn field_size(&self) -> usize;
    fn to_be_bytes(&self) -> Vec<u8>;
    fn try_from_be_bytes(bytes: &[u8]) -> Result<(Self, usize), Box<dyn Error>>
       where Self: Sized;
}

Required Methods§

source

fn field_size(&self) -> usize

source

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

source

fn try_from_be_bytes(bytes: &[u8]) -> Result<(Self, usize), Box<dyn Error>>where Self: Sized,

Implementors§