Struct cow_hashmap::OccupiedError
source · pub struct OccupiedError<K: Clone, V, S> {
pub entry: OccupiedEntry<K, V, S>,
pub value: V,
}Expand description
The error returned by try_insert when the key already exists.
Contains the occupied entry, and the value that was not inserted.
Fields§
§entry: OccupiedEntry<K, V, S>The entry in the map that was already occupied.
value: VThe value which was not inserted, because the entry was already occupied.
Trait Implementations§
source§impl<K: Clone + Debug, V: Debug, S> Error for OccupiedError<K, V, S>
impl<K: Clone + Debug, V: Debug, S> Error for OccupiedError<K, V, S>
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
Auto Trait Implementations§
impl<K, V, S> Freeze for OccupiedError<K, V, S>
impl<K, V, S> RefUnwindSafe for OccupiedError<K, V, S>
impl<K, V, S> Send for OccupiedError<K, V, S>
impl<K, V, S> Sync for OccupiedError<K, V, S>
impl<K, V, S> Unpin for OccupiedError<K, V, S>
impl<K, V, S> UnwindSafe for OccupiedError<K, V, S>
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