Trait mac_parser::ReadFixed

source ·
pub trait ReadFixed<const N: usize>: Sized {
    // Required method
    fn from_bytes(data: &[u8; N]) -> Result<Self, ParserError>;
}
Expand description

A trait for reading data of fixed length.

Required Methods§

source

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

Implementors§