pub enum QueryResult<'a, V> {
Val(&'a V),
Partial,
Missing,
}Expand description
The result of querying a Trie for a particular Key.
Variants§
Val(&'a V)
A leaf value associated with the key used in the query
Partial
The key used to query is a prefix to multiple values
Missing
The key does not exist within the Trie
Trait Implementations§
Source§impl<'a, V: Clone> Clone for QueryResult<'a, V>
impl<'a, V: Clone> Clone for QueryResult<'a, V>
Source§fn clone(&self) -> QueryResult<'a, V>
fn clone(&self) -> QueryResult<'a, V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, V: Debug> Debug for QueryResult<'a, V>
impl<'a, V: Debug> Debug for QueryResult<'a, V>
impl<'a, V: Eq> Eq for QueryResult<'a, V>
Source§impl<'a, V> From<QueryResult<'a, V>> for Option<&'a V>
impl<'a, V> From<QueryResult<'a, V>> for Option<&'a V>
Source§fn from(q: QueryResult<'a, V>) -> Self
fn from(q: QueryResult<'a, V>) -> Self
Converts to this type from the input type.
Source§impl<'a, V: PartialEq> PartialEq for QueryResult<'a, V>
impl<'a, V: PartialEq> PartialEq for QueryResult<'a, V>
Source§fn eq(&self, other: &QueryResult<'a, V>) -> bool
fn eq(&self, other: &QueryResult<'a, V>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a, V> StructuralPartialEq for QueryResult<'a, V>
Auto Trait Implementations§
impl<'a, V> Freeze for QueryResult<'a, V>
impl<'a, V> RefUnwindSafe for QueryResult<'a, V>where
V: RefUnwindSafe,
impl<'a, V> Send for QueryResult<'a, V>where
V: Sync,
impl<'a, V> Sync for QueryResult<'a, V>where
V: Sync,
impl<'a, V> Unpin for QueryResult<'a, V>
impl<'a, V> UnsafeUnpin for QueryResult<'a, V>
impl<'a, V> UnwindSafe for QueryResult<'a, V>where
V: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.