Struct gluon_base::fixed::FixedMap
source · pub struct FixedMap<K, V> { /* private fields */ }
Implementations§
source§impl<K: Eq + Hash, V> FixedMap<K, V>
impl<K: Eq + Hash, V> FixedMap<K, V>
pub fn insert(&mut self, key: K, value: V) -> Option<V>
pub fn try_insert(&self, key: K, value: V) -> Result<(), (K, V)>
pub fn get<Q>(&self, k: &Q) -> Option<&V>where K: Borrow<Q>, Q: ?Sized + Eq + Hash,
pub fn get_mut<Q>(&mut self, k: &Q) -> Option<&mut V>where K: Borrow<Q>, Q: Eq + Hash,
pub fn remove<Q>(&mut self, key: &Q)where K: Borrow<Q>, Q: Eq + Hash,
Trait Implementations§
Auto Trait Implementations§
impl<K, V> !RefUnwindSafe for FixedMap<K, V>
impl<K, V> Send for FixedMap<K, V>where K: Send, V: Send,
impl<K, V> !Sync for FixedMap<K, V>
impl<K, V> Unpin for FixedMap<K, V>where K: Unpin, V: Unpin,
impl<K, V> UnwindSafe for FixedMap<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