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§
Required Methods§
Provided Methods§
Sourcefn parse(input: &[u8]) -> IResult<&[u8], Self>
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.