Trait bin_layout::Decoder
source · [−]pub trait Decoder<'de>: Sized {
fn decoder(_: &mut &'de [u8]) -> Result<Self, Box<dyn Error + Send + Sync>>;
fn decode(data: &'de [u8]) -> Result<Self, Box<dyn Error + Send + Sync>> { ... }
}Expand description
This trait used to deserialize the data structure from binary format.