pub trait Load {
    type Source: Iterator<Item = AddSymbol>;

    // Required method
    fn load<R: Read>(
        rdr: R,
        params: &LoadParams
    ) -> Result<Self::Source, Box<dyn Error>>;
}
Expand description

Load implementers can read the contents of a Read type and produce a stream of AddSymbols, which are used for merging foreign formats into a SymGen.

Required Associated Types§

Required Methods§

source

fn load<R: Read>( rdr: R, params: &LoadParams ) -> Result<Self::Source, Box<dyn Error>>

Load data in some format from rdr and return an iterator of AddSymbols based on the options specified in params.

Object Safety§

This trait is not object safe.

Implementors§