Skip to main content

Module dictionary

Module dictionary 

Source
Expand description

A dict format (*.dict) reader crate.

This crate can read dictionaries in the dict format, as used by dictd. It supports both uncompressed and compressed dictionaries.

It also provides support for downloading dictionaries from the monolingual project.

Modulesยง

db_index ๐Ÿ”’
SQLite-backed dictionary index reader.
dictreader ๐Ÿ”’
Open and read .dict or .dict.dz files.
errors ๐Ÿ”’
Errors for the Dict dictionary crate.
indexing ๐Ÿ”’
Shared types for dictionary index readers.
monolingual ๐Ÿ”’
Monolingual dictionary support.

Structsยง

Dictionary
A dictionary wrapper.
Metadata
The special metadata entries that we care about.

Functionsยง

load_dictionary
Load dictionary from given DictReader and Index.
load_dictionary_from_db
Load dictionary using a database-backed index reader.
resolve_dict_id
Resolves the dict_id for a given fingerprint from the database.