pub trait DictReader {
// Required method
fn fetch_definition(
&mut self,
start_offset: u64,
length: u64,
) -> Result<String, DictError>;
}Expand description
A dictionary (content) reader.
This type abstracts from the underlying seek operations required for lookup of headwords and provides easy methods to search for a word given a certain offset and length. Users of a type which implements this trait don’t need to care about compression of the dictionary.