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(()),
}

Variants§

§1.0.0

Ok(Option<T>)

Contains the success value

§1.0.0

Err(())

Contains the error value