pub trait ReadFixedCtx<const N: usize, Ctx>: 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§

source

fn from_bytes(data: &[u8; N], ctx: Ctx) -> Result<Self, ParserError>

Implementors§