pub struct SmallIntMap<T> { /* private fields */ }
Implementations§
Source§impl<T> SmallIntMap<T>
impl<T> SmallIntMap<T>
pub fn new() -> SmallIntMap<T>
pub fn push(&mut self, v: T)
pub fn pop(&mut self, key: &usize) -> Option<T>
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn clear(&mut self)
pub fn find_mut<'a>(&'a mut self, key: &usize) -> Option<&'a mut T>
pub fn find<'a>(&'a self, key: &usize) -> Option<&'a T>
pub fn contains_key(&self, key: &usize) -> bool
pub fn insert(&mut self, key: usize, value: T) -> bool
pub fn remove(&mut self, key: &usize) -> bool
pub fn get<'a>(&'a self, key: &usize) -> &'a T
pub fn iter<'r>(&'r self) -> Iter<'r, Option<T>>
pub fn iter_mut<'r>(&'r mut self) -> IterMut<'r, Option<T>>
Trait Implementations§
Source§impl<T: Clone> Clone for SmallIntMap<T>
impl<T: Clone> Clone for SmallIntMap<T>
Source§fn clone(&self) -> SmallIntMap<T>
fn clone(&self) -> SmallIntMap<T>
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<T: Hash> Hash for SmallIntMap<T>
impl<T: Hash> Hash for SmallIntMap<T>
Source§impl<T: PartialEq> PartialEq for SmallIntMap<T>
impl<T: PartialEq> PartialEq for SmallIntMap<T>
impl<T: Eq> Eq for SmallIntMap<T>
Auto Trait Implementations§
impl<T> Freeze for SmallIntMap<T>
impl<T> RefUnwindSafe for SmallIntMap<T>where
T: RefUnwindSafe,
impl<T> Send for SmallIntMap<T>where
T: Send,
impl<T> Sync for SmallIntMap<T>where
T: Sync,
impl<T> Unpin for SmallIntMap<T>where
T: Unpin,
impl<T> UnwindSafe for SmallIntMap<T>where
T: 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