[−][src]Struct ironsea_index_hashmap::Index
Implementation of ironsea_index
::Indexed
.
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<K, R> Index<R, K> where
R: Record<K>,
K: Clone + Eq + Hash + PartialEq + Ord,
[src]
R: Record<K>,
K: Clone + Eq + Hash + PartialEq + Ord,
pub fn new<I>(iter: I) -> Self where
I: Iterator<Item = R>,
[src]
I: Iterator<Item = R>,
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<R: Clone, K: Clone> Clone for Index<R, K> where
K: Clone + Eq + Hash + PartialEq + Ord,
[src]
K: Clone + Eq + Hash + PartialEq + Ord,
impl<R: Debug, K: Debug> Debug for Index<R, K> where
K: Clone + Eq + Hash + PartialEq + Ord,
[src]
K: Clone + Eq + Hash + PartialEq + Ord,
impl<'de, R, K> Deserialize<'de> for Index<R, K> where
K: Clone + Eq + Hash + PartialEq + Ord,
R: Deserialize<'de>,
K: Deserialize<'de>,
[src]
K: Clone + Eq + Hash + PartialEq + Ord,
R: Deserialize<'de>,
K: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<K, R> Indexed<R, K> for Index<R, K> where
R: Record<K>,
K: Clone + Eq + Hash + PartialEq + Ord,
[src]
R: Record<K>,
K: Clone + Eq + Hash + PartialEq + Ord,
impl<R, K> Serialize for Index<R, K> where
K: Clone + Eq + Hash + PartialEq + Ord,
R: Serialize,
K: Serialize,
[src]
K: Clone + Eq + Hash + PartialEq + Ord,
R: Serialize,
K: Serialize,
Auto Trait Implementations
impl<R, K> RefUnwindSafe for Index<R, K> where
K: RefUnwindSafe,
R: RefUnwindSafe,
K: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, K> Send for Index<R, K> where
K: Send,
R: Send,
K: Send,
R: Send,
impl<R, K> Sync for Index<R, K> where
K: Sync,
R: Sync,
K: Sync,
R: Sync,
impl<R, K> Unpin for Index<R, K> where
K: Unpin,
R: Unpin,
K: Unpin,
R: Unpin,
impl<R, K> UnwindSafe for Index<R, K> where
K: UnwindSafe,
R: UnwindSafe,
K: UnwindSafe,
R: 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>,