pub struct Map<'arena, K, V>where
K: 'arena,
V: 'arena + Copy,{ /* private fields */ }
Expand description
A map of keys K
to values V
. The map is built as a pseudo-random
binary tree with hashes of keys used for balancing the tree nodes.
All the nodes of the map are also linked to allow iteration in insertion order.
Implementations
sourceimpl<'arena, K, V> Map<'arena, K, V>where
K: 'arena + Eq + Hash + Copy,
V: 'arena + Copy,
impl<'arena, K, V> Map<'arena, K, V>where
K: 'arena + Eq + Hash + Copy,
V: 'arena + Copy,
Trait Implementations
sourceimpl<'arena, K: Clone, V: Clone> Clone for Map<'arena, K, V>where
K: 'arena,
V: 'arena + Copy,
impl<'arena, K: Clone, V: Clone> Clone for Map<'arena, K, V>where
K: 'arena,
V: 'arena + Copy,
sourceimpl<'arena, K, V> From<BloomMap<'arena, K, V>> for Map<'arena, K, V>where
K: 'arena + Eq + Hash + Copy + AsRef<[u8]>,
V: 'arena + Copy,
impl<'arena, K, V> From<BloomMap<'arena, K, V>> for Map<'arena, K, V>where
K: 'arena + Eq + Hash + Copy + AsRef<[u8]>,
V: 'arena + Copy,
sourceimpl<'arena, K, V> From<Map<'arena, K, V>> for BloomMap<'arena, K, V>where
K: 'arena + Eq + Hash + Copy + AsRef<[u8]>,
V: 'arena + Copy,
impl<'arena, K, V> From<Map<'arena, K, V>> for BloomMap<'arena, K, V>where
K: 'arena + Eq + Hash + Copy + AsRef<[u8]>,
V: 'arena + Copy,
sourceimpl<'arena, K, V> IntoIterator for Map<'arena, K, V>where
K: 'arena,
V: 'arena + Copy,
impl<'arena, K, V> IntoIterator for Map<'arena, K, V>where
K: 'arena,
V: 'arena + Copy,
sourceimpl<'a, 'b, KA, VA, KB, VB> PartialEq<Map<'b, KB, VB>> for Map<'a, KA, VA>where
(&'a KA, VA): PartialEq<(&'b KB, VB)>,
VA: Copy,
VB: Copy,
impl<'a, 'b, KA, VA, KB, VB> PartialEq<Map<'b, KB, VB>> for Map<'a, KA, VA>where
(&'a KA, VA): PartialEq<(&'b KB, VB)>,
VA: Copy,
VB: Copy,
impl<'arena, K: Copy, V: Copy> Copy for Map<'arena, K, V>where
K: 'arena,
V: 'arena + Copy,
Auto Trait Implementations
impl<'arena, K, V> RefUnwindSafe for Map<'arena, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'arena, K, V> Send for Map<'arena, K, V>
impl<'arena, K, V> !Sync for Map<'arena, K, V>
impl<'arena, K, V> Unpin for Map<'arena, K, V>
impl<'arena, K, V> UnwindSafe for Map<'arena, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more