pub enum InsertionResult<V> {
Inserted(usize),
Updated(V),
}Expand description
The result of inserting an entry into the map.
Variants§
Inserted(usize)
The entry was inserted.
The number of entries in the map is returned.
Updated(V)
The entry was updated.
The old value is returned.
Auto Trait Implementations§
impl<V> Freeze for InsertionResult<V>where
V: Freeze,
impl<V> RefUnwindSafe for InsertionResult<V>where
V: RefUnwindSafe,
impl<V> Send for InsertionResult<V>where
V: Send,
impl<V> Sync for InsertionResult<V>where
V: Sync,
impl<V> Unpin for InsertionResult<V>where
V: Unpin,
impl<V> UnsafeUnpin for InsertionResult<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for InsertionResult<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