Type Alias radix_trie::SubTrieResult
source · pub type SubTrieResult<T> = Result<Option<T>, ()>;
Expand description
Wrapper for subtrie lookup results.
When fetching from a subtrie, if the prefix is wrong you’ll get an Err(())
.
Otherwise you’ll get an Ok(_)
, where the contained option value is what would ordinarily
be returned by get/insert/whatever.
Aliased Type§
enum SubTrieResult<T> {
Ok(Option<T>),
Err(()),
}