[][src]Trait assembly_data::fdb::parser::ParseLE

pub trait ParseLE: Sized + Copy {
    type Buf: AsMut<[u8]> + Default;

    pub const BYTE_COUNT: usize;

    pub fn parse(i: &[u8]) -> IResult<&[u8], Self>;
}

Marker trait that implies that Self can be parsed in little-endian mode

Associated Types

type Buf: AsMut<[u8]> + Default[src]

A byte array of the same length that can be parsed as Self

Loading content...

Associated Constants

pub const BYTE_COUNT: usize[src]

Same as std::mem::size_of::<Self>()

Loading content...

Required methods

pub fn parse(i: &[u8]) -> IResult<&[u8], Self>[src]

Function to parse the buffer into self

Loading content...

Implementations on Foreign Types

impl ParseLE for u32[src]

type Buf = [u8; 4]

impl ParseLE for (u32, u32)[src]

type Buf = [u8; 8]

impl ParseLE for (u32, [u8; 4])[src]

type Buf = [u8; 8]

impl ParseLE for (u32, u32, u32)[src]

type Buf = [u8; 12]

Loading content...

Implementors

Loading content...