pub trait LookupParser<R: Reader> {
type Header;
type Entry;
// Required methods
fn parse_header(input: &mut R) -> Result<(R, Self::Header)>;
fn parse_entry(
input: &mut R,
header: &Self::Header,
) -> Result<Option<Self::Entry>>;
}
Required Associated Types§
Required Methods§
Sourcefn parse_header(input: &mut R) -> Result<(R, Self::Header)>
fn parse_header(input: &mut R) -> Result<(R, Self::Header)>
Parse a header from input
. Returns a tuple of input
sliced to contain just the entries
corresponding to this header (without the header itself), and the parsed representation of
the header itself.
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.