pub struct CIndexMap<K, V> { /* private fields */ }Implementations§
Source§impl<K, V> CIndexMap<K, V>
impl<K, V> CIndexMap<K, V>
Sourcepub fn insert(&mut self, key: K, value: V) -> Result<()>
pub fn insert(&mut self, key: K, value: V) -> Result<()>
Inserts a new key/value pair into the map.
This function returns Ok(()) if the key/value pair was inserted successfully.
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for CIndexMap<K, V>
impl<K, V> RefUnwindSafe for CIndexMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> !Send for CIndexMap<K, V>
impl<K, V> !Sync for CIndexMap<K, V>
impl<K, V> Unpin for CIndexMap<K, V>
impl<K, V> UnwindSafe for CIndexMap<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