The ucd-trie crate provides a compressed trie set specifically tailored for Unicode codepoints. The principle use case for such a trie is to represent properties defined by Unicode that correspond to sets of Unicode codepoints. (These properties are formally called boolean properties or “single valued” properties. See UTR#23 S3.3 for more details.)
This crate has two principle types:
corresponding to a similar split as there is between
TrieSetOwned is the only way to construct a trie from a set of Unicode
The intended use of this library is to embed a static instance of
TrieSetSlice into your source code, and then use its methods as defined in
this crate to test membership. (The
ucd-generate tool can likely generate
this code for you.)
Finally, while this crate uses the standard library by default, it provides
no_std functionality by disabling the
std feature. When
TrieSetOwned is not provided. Instead, only
provided, which means
no_std crates can still embed tries into their code.
- An owned trie set.
- A borrowed trie set.
- An error that can occur during construction of a trie.
- A type alias that maps to
- A type alias for