Trait gimli::read::lookup::LookupParser

source ·
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§

source

type Header

The type of the produced header.

source

type Entry

The type of the produced entry.

Required Methods§

source

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.

source

fn parse_entry( input: &mut R, header: &Self::Header, ) -> Result<Option<Self::Entry>>

Parse a single entry from input. Returns either a parsed representation of the entry or None if input is exhausted.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<R, Entry> LookupParser<R> for PubStuffParser<R, Entry>
where R: Reader, Entry: PubStuffEntry<R>,

§

type Header = PubStuffHeader<<R as Reader>::Offset>

§

type Entry = Entry