[][src]Trait retriever::queries::secondary_index::KeySet

pub trait KeySet<'a, K: ?Sized> where
    K: ToOwned + 'a, 
{ type KeySetIter: Iterator<Item = Cow<'a, K>>; fn iter_keys(&'a self) -> Self::KeySetIter; }

Any type that represents a set of secondary index keys.

Associated Types

type KeySetIter: Iterator<Item = Cow<'a, K>>

The type of iterator that yields the keys of this KeySet.

Loading content...

Required methods

fn iter_keys(&'a self) -> Self::KeySetIter

Returns an Iterator over the keys of this KeySet.

Loading content...

Implementations on Foreign Types

impl<'a, K: ?Sized, T> KeySet<'a, K> for [T; 1] where
    T: Clone + Borrow<K> + 'a,
    K: ToOwned<Owned = T> + 'a, 
[src]

type KeySetIter = Map<<&'a [T] as IntoIterator>::IntoIter, fn(_: &'a T) -> Cow<'a, K>>

impl<'a, K: ?Sized, T> KeySet<'a, K> for Option<T> where
    T: Clone + Borrow<K> + 'a,
    K: ToOwned<Owned = T> + 'a, 
[src]

type KeySetIter = Map<<&'a Option<T> as IntoIterator>::IntoIter, fn(_: &'a T) -> Cow<'a, K>>

impl<'a, K: ?Sized, T, S> KeySet<'a, K> for HashSet<T, S> where
    T: Clone + Borrow<K> + 'a,
    K: ToOwned<Owned = T> + 'a, 
[src]

type KeySetIter = Map<<&'a HashSet<T, S> as IntoIterator>::IntoIter, fn(_: &'a T) -> Cow<'a, K>>

impl<'a, K: ?Sized, T> KeySet<'a, K> for BTreeSet<T> where
    T: Clone + Borrow<K> + 'a,
    K: ToOwned<Owned = T> + 'a, 
[src]

type KeySetIter = Map<<&'a BTreeSet<T> as IntoIterator>::IntoIter, fn(_: &'a T) -> Cow<'a, K>>

Loading content...

Implementors

Loading content...