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>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.