Trait ParseFDB

Source
pub trait ParseFDB: Sized + Copy {
    type IO: ParseLE;

    // Required method
    fn new(i: Self::IO) -> Self;

    // Provided method
    fn parse(input: &[u8]) -> IResult<&[u8], Self> { ... }
}
Expand description

Trait that implements parsing from a FDB file

Required Associated Types§

Source

type IO: ParseLE

The ParseLE compatible type that is equivalent to Self

Required Methods§

Source

fn new(i: Self::IO) -> Self

Create Self from an instance of IO

Provided Methods§

Source

fn parse(input: &[u8]) -> IResult<&[u8], Self>

Parse an FDB structure from a input slice

This function chains ParseLE::parse with ParseFDB::new

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.

Implementors§