Struct shortcut::idx::HashIndex [−][src]
An implementation of EqualityIndex
that uses a HashMap
.
Implementations
impl<K: Eq + Hash> HashIndex<K>
[src]
Trait Implementations
impl<K: Clone + Eq + Hash> Clone for HashIndex<K>
[src]
impl<T: Eq + Hash> EqualityIndex<T> for HashIndex<T>
[src]
fn lookup<'a>(&'a self, key: &T) -> Box<dyn Iterator<Item = usize> + 'a>
[src]
fn index(&mut self, key: T, row: usize)
[src]
fn undex(&mut self, key: &T, row: usize)
[src]
fn estimate(&self) -> usize
[src]
impl<T: Eq + Hash + 'static + Send + Sync> From<HashIndex<T>> for Index<T>
[src]
Auto Trait Implementations
impl<K> RefUnwindSafe for HashIndex<K> where
K: RefUnwindSafe,
K: RefUnwindSafe,
impl<K> Send for HashIndex<K> where
K: Send,
K: Send,
impl<K> Sync for HashIndex<K> where
K: Sync,
K: Sync,
impl<K> Unpin for HashIndex<K> where
K: Unpin,
K: Unpin,
impl<K> UnwindSafe for HashIndex<K> where
K: 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,