Trait bin_utils::ReadFixedCtx
source · pub trait ReadFixedCtx<const N: usize, Ctx>where
Self: Sized,{
// Required method
fn from_bytes(data: &[u8; N], ctx: Ctx) -> Result<Self, ParserError>;
}Expand description
A trait for reading data of fixed length, with context.
Required Methods§
fn from_bytes(data: &[u8; N], ctx: Ctx) -> Result<Self, ParserError>
Object Safety§
This trait is not object safe.