[−][src]Struct ironsea_index_hashmap::IndexDestructured
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]
K: Clone + Eq + Hash + PartialEq + Ord,
pub fn new<I, R>(iter: I) -> Self where
I: Iterator<Item = R>,
R: Record<K> + RecordFields<F>, [src]
I: Iterator<Item = R>,
R: Record<K> + RecordFields<F>,
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]
K: Clone + Eq + Hash + PartialEq + Ord,
impl<F: Debug, K: Debug> Debug for Index<F, K> where
K: Clone + Eq + Hash + PartialEq + Ord, [src]
K: Clone + Eq + Hash + PartialEq + Ord,
impl<'de, F, K> Deserialize<'de> for Index<F, K> where
K: Clone + Eq + Hash + PartialEq + Ord,
F: Deserialize<'de>,
K: Deserialize<'de>, [src]
K: Clone + Eq + Hash + PartialEq + Ord,
F: Deserialize<'de>,
K: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl<F, K> IndexedDestructured<F, K> for Index<F, K> where
K: Clone + Eq + Hash + PartialEq + Ord, [src]
K: Clone + Eq + Hash + PartialEq + Ord,
fn find(&self, key: &K) -> Vec<&F>[src]
fn find_range(&self, start: &K, end: &K) -> Vec<(K, &F)>[src]
impl<F, K> Serialize for Index<F, K> where
K: Clone + Eq + Hash + PartialEq + Ord,
F: Serialize,
K: Serialize, [src]
K: Clone + Eq + Hash + PartialEq + Ord,
F: Serialize,
K: Serialize,
Auto Trait Implementations
impl<F, K> RefUnwindSafe for Index<F, K> where
F: RefUnwindSafe,
K: RefUnwindSafe,
F: RefUnwindSafe,
K: RefUnwindSafe,
impl<F, K> Send for Index<F, K> where
F: Send,
K: Send,
F: Send,
K: Send,
impl<F, K> Sync for Index<F, K> where
F: Sync,
K: Sync,
F: Sync,
K: Sync,
impl<F, K> Unpin for Index<F, K> where
F: Unpin,
K: Unpin,
F: Unpin,
K: Unpin,
impl<F, K> UnwindSafe for Index<F, K> where
F: UnwindSafe,
K: UnwindSafe,
F: UnwindSafe,
K: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,