[][src]Struct ironsea_index_hashmap::IndexDestructured

pub struct IndexDestructured<F, K> where
    K: Clone + Eq + Hash + PartialEq + Ord
{ /* fields omitted */ }

Implementation of ironsea_index::IndexedDestructured.

The index is backed by a std::collections::HashMap.

An ordered std::vec::Vec of keys is maintained, in order to satisfy range queries.

Methods

impl<F, K> Index<F, K> where
    K: Clone + Eq + Hash + PartialEq + Ord
[src]

pub fn new<I, R>(iter: I) -> Self where
    I: Iterator<Item = R>,
    R: Record<K> + RecordFields<F>, 
[src]

Creates a new Index from the provided iterator.

pub fn keys(&self) -> &Vec<K>[src]

Return an ordered list of all keys contained in the index.

Trait Implementations

impl<F: Clone, K: Clone> Clone for Index<F, K> where
    K: Clone + Eq + Hash + PartialEq + Ord
[src]

impl<F: Debug, K: Debug> Debug for Index<F, K> where
    K: Clone + Eq + Hash + PartialEq + Ord
[src]

impl<'de, F, K> Deserialize<'de> for Index<F, K> where
    K: Clone + Eq + Hash + PartialEq + Ord,
    F: Deserialize<'de>,
    K: Deserialize<'de>, 
[src]

impl<F, K> IndexedDestructured<F, K> for Index<F, K> where
    K: Clone + Eq + Hash + PartialEq + Ord
[src]

impl<F, K> Serialize for Index<F, K> where
    K: Clone + Eq + Hash + PartialEq + Ord,
    F: Serialize,
    K: Serialize
[src]

Auto Trait Implementations

impl<F, K> RefUnwindSafe for Index<F, K> where
    F: RefUnwindSafe,
    K: RefUnwindSafe

impl<F, K> Send for Index<F, K> where
    F: Send,
    K: Send

impl<F, K> Sync for Index<F, K> where
    F: Sync,
    K: Sync

impl<F, K> Unpin for Index<F, K> where
    F: Unpin,
    K: Unpin

impl<F, K> UnwindSafe for Index<F, K> where
    F: UnwindSafe,
    K: 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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.