Struct generational_cache::map::impls::alloc_btree_map::AllocBTreeMap
source · pub struct AllocBTreeMap<K, V> { /* private fields */ }Expand description
A Map implementation based on alloc::collections::BTreeMap.
Implementations§
source§impl<K, V> AllocBTreeMap<K, V>
impl<K, V> AllocBTreeMap<K, V>
pub fn with_btree_map(btree_map: BTreeMap<K, V>) -> Self
pub fn new() -> Self
Trait Implementations§
source§impl<K, V> Default for AllocBTreeMap<K, V>
impl<K, V> Default for AllocBTreeMap<K, V>
source§impl<K: Ord, V> Map<K, V> for AllocBTreeMap<K, V>
impl<K: Ord, V> Map<K, V> for AllocBTreeMap<K, V>
type Error = Infallible
fn insert(&mut self, key: K, value: V) -> Result<Option<V>, Self::Error>
fn get(&self, key: &K) -> Option<&V>
fn get_mut(&mut self, key: &K) -> Option<&mut V>
fn remove(&mut self, key: &K) -> Option<V>
fn clear(&mut self) -> Result<(), Self::Error>
fn is_empty(&self) -> bool
fn capacity(&self) -> Option<usize>
fn len(&self) -> usize
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for AllocBTreeMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for AllocBTreeMap<K, V>
impl<K, V> Sync for AllocBTreeMap<K, V>
impl<K, V> Unpin for AllocBTreeMap<K, V>
impl<K, V> UnwindSafe for AllocBTreeMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
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