pub struct TrainMap<'a, K, V, S = RandomState> { /* private fields */ }Implementations§
Source§impl<'a, K: Eq + Hash, V> TrainMap<'a, K, V>
impl<'a, K: Eq + Hash, V> TrainMap<'a, K, V>
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
Source§impl<'a, K: Eq + Hash, V, S: BuildHasher> TrainMap<'a, K, V, S>
impl<'a, K: Eq + Hash, V, S: BuildHasher> TrainMap<'a, K, V, S>
pub fn with_hasher(hasher: S) -> Self
pub fn with_capacity_and_hasher(capacity: usize, hasher: S) -> Self
pub fn hasher(&self) -> &S
pub fn get<Q: Eq + Hash + ?Sized>(&self, key: &Q) -> Option<&V>where
K: Borrow<Q>,
pub fn insert(&mut self, key: K, value: V) -> Option<V>
pub fn fork(&'a self) -> Selfwhere
S: Clone,
Trait Implementations§
Source§impl<'a, K: Eq + Hash, V, S: BuildHasher> Extend<(K, V)> for TrainMap<'a, K, V, S>
impl<'a, K: Eq + Hash, V, S: BuildHasher> Extend<(K, V)> for TrainMap<'a, K, V, S>
Source§fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Auto Trait Implementations§
impl<'a, K, V, S> Forget for TrainMap<'a, K, V, S>
impl<'a, K, V, S> Freeze for TrainMap<'a, K, V, S>
impl<'a, K, V, S> Move for TrainMap<'a, K, V, S>
impl<'a, K, V, S> RefUnwindSafe for TrainMap<'a, K, V, S>
impl<'a, K, V, S> Send for TrainMap<'a, K, V, S>
impl<'a, K, V, S> Sync for TrainMap<'a, K, V, S>
impl<'a, K, V, S> Unpin for TrainMap<'a, K, V, S>
impl<'a, K, V, S> UnsafeUnpin for TrainMap<'a, K, V, S>
impl<'a, K, V, S> UnwindSafe for TrainMap<'a, K, V, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more