Trait from_bytes::StructFromBytes[][src]

pub trait StructFromBytes<T: PackedSize = Self>: PackedSize {
    fn from_bytes(slice: &[u8], offset: usize) -> Result<Box<Self>>;
}

Required methods

Creates an instance of T by parsing a slice of bytes.

This method assumes that the byte slice contains unaligned data.

Implementors