[][src]Type Definition radix_trie::SubTrieResult

type SubTrieResult<T> = Result<Option<T>, ()>;

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.