Struct gluon_base::fixed::FixedVecMap
source · pub struct FixedVecMap<V> { /* private fields */ }
Implementations§
source§impl<V> FixedVecMap<V>
impl<V> FixedVecMap<V>
source§impl<V> FixedVecMap<V>
impl<V> FixedVecMap<V>
pub fn insert(&mut self, key: usize, value: V) -> Option<V>
pub fn remove(&mut self, key: usize)
pub fn try_insert(&self, key: usize, value: V) -> Result<(), (usize, V)>
pub fn get(&self, k: usize) -> Option<&V>
pub fn get_mut(&mut self, k: usize) -> Option<&mut V>
pub fn truncate(&mut self, index: usize)
pub fn drain<'a>(&'a mut self) -> impl Iterator<Item = V> + 'a
pub fn iter(&self) -> impl Iterator<Item = (usize, &V)>
Trait Implementations§
source§impl<V: Debug> Debug for FixedVecMap<V>
impl<V: Debug> Debug for FixedVecMap<V>
source§impl<V> Default for FixedVecMap<V>
impl<V> Default for FixedVecMap<V>
source§fn default() -> FixedVecMap<V>
fn default() -> FixedVecMap<V>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<V> !RefUnwindSafe for FixedVecMap<V>
impl<V> Send for FixedVecMap<V>where
V: Send,
impl<V> !Sync for FixedVecMap<V>
impl<V> Unpin for FixedVecMap<V>where
V: Unpin,
impl<V> UnwindSafe for FixedVecMap<V>where
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