pub struct DynamicLimitedSizeMap<K, V>{ /* private fields */ }
Implementations§
Source§impl<K, V> DynamicLimitedSizeMap<K, ValuePair<V>>
impl<K, V> DynamicLimitedSizeMap<K, ValuePair<V>>
pub fn new(max_size: usize) -> Self
pub fn add(&mut self, key: K, increment1: V, increment2: V)
pub fn get(&self, key: &K) -> Option<&ValuePair<V>>
pub fn get_mut(&mut self, key: &K) -> Option<&mut ValuePair<V>>
pub fn iter(&self) -> Iter<'_, K, ValuePair<V>>
pub fn iter_mut(&mut self) -> IterMut<'_, K, ValuePair<V>>
Trait Implementations§
Source§impl<K, V> Clone for DynamicLimitedSizeMap<K, V>
impl<K, V> Clone for DynamicLimitedSizeMap<K, V>
Source§fn clone(&self) -> DynamicLimitedSizeMap<K, V>
fn clone(&self) -> DynamicLimitedSizeMap<K, V>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<K, V> Debug for DynamicLimitedSizeMap<K, V>
impl<K, V> Debug for DynamicLimitedSizeMap<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for DynamicLimitedSizeMap<K, V>
impl<K, V> RefUnwindSafe for DynamicLimitedSizeMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for DynamicLimitedSizeMap<K, V>
impl<K, V> Sync for DynamicLimitedSizeMap<K, V>
impl<K, V> Unpin for DynamicLimitedSizeMap<K, V>
impl<K, V> UnwindSafe for DynamicLimitedSizeMap<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)