load_dictionary

Function load_dictionary 

Source
pub fn load_dictionary(
    content: Box<dyn DictReader>,
    index: Box<dyn IndexReader>,
) -> Dictionary
Expand description

Load dictionary from given DictReader and Index.

A dictionary is made of an index and a dictionary (data). Both are required for look up. This function allows abstraction from the underlying source by only requiring a dictReader as trait object. This way, dictionaries from RAM or similar can be implemented.