pub fn load_dict<P: AsRef<Path>>(
path: P,
) -> Result<Box<dyn DictReader>, DictError>Expand description
Load a DictReader from file.
This function loads a Dictreader from a file and transparently selects
the correct reader using the file type extension, so the callee doesn’t need to care about
compression (.dz).
§Errors
The function can return a DictError, which can either occur if a I/O error occurs, or when
the GZ compressed file is invalid.