[][src]Struct hat_trie::PrefixIterator

pub struct PrefixIterator<'a, 'b, K, T, V> where
    K: Copy + Hash + PartialEq + PartialOrd + Sized,
    Box<[K]>: Clone + PartialEq,
    T: 'a + TrieNode<K, V>,
    V: Clone
{ /* fields omitted */ }

An iterator that return prefix of given query.

This iterator also return an exact match to query. It doesn't guarantee order of return prefix.

Trait Implementations

impl<'a, 'b, K: Debug, T: Debug, V: Debug> Debug for PrefixIterator<'a, 'b, K, T, V> where
    K: Copy + Hash + PartialEq + PartialOrd + Sized,
    Box<[K]>: Clone + PartialEq,
    T: 'a + TrieNode<K, V>,
    V: Clone
[src]

impl<'a, 'b, K, T, V> FusedIterator for PrefixIterator<'a, 'b, K, T, V> where
    K: Copy + Hash + PartialEq + PartialOrd + Sized,
    Box<[K]>: Clone + PartialEq,
    T: 'a + TrieNode<K, V>,
    V: Clone
[src]

impl<'a, 'b, K, T, V> Iterator for PrefixIterator<'a, 'b, K, T, V> where
    K: Copy + Hash + PartialEq + PartialOrd + Sized,
    Box<[K]>: Clone + PartialEq,
    T: 'a + TrieNode<K, V>,
    V: Clone
[src]

type Item = (&'b [K], &'a V)

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, 'b, K, T, V> RefUnwindSafe for PrefixIterator<'a, 'b, K, T, V> where
    K: RefUnwindSafe,
    T: RefUnwindSafe,
    V: RefUnwindSafe

impl<'a, 'b, K, T, V> Send for PrefixIterator<'a, 'b, K, T, V> where
    K: Sync,
    T: Sync,
    V: Send + Sync

impl<'a, 'b, K, T, V> Sync for PrefixIterator<'a, 'b, K, T, V> where
    K: Sync,
    T: Sync,
    V: Sync

impl<'a, 'b, K, T, V> Unpin for PrefixIterator<'a, 'b, K, T, V> where
    V: Unpin

impl<'a, 'b, K, T, V> UnwindSafe for PrefixIterator<'a, 'b, K, T, V> where
    K: RefUnwindSafe,
    T: RefUnwindSafe,
    V: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,