Struct flurry::TryInsertError
source · pub struct TryInsertError<'a, V> {
pub current: &'a V,
pub not_inserted: V,
}
Expand description
The error type for the HashMap::try_insert
method.
Fields§
§current: &'a V
A reference to the current value mapped to the key.
not_inserted: V
The value that HashMap::try_insert
failed to insert.
Trait Implementations§
source§impl<'a, V: Clone> Clone for TryInsertError<'a, V>
impl<'a, V: Clone> Clone for TryInsertError<'a, V>
source§fn clone(&self) -> TryInsertError<'a, V>
fn clone(&self) -> TryInsertError<'a, V>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, V: Debug> Debug for TryInsertError<'a, V>
impl<'a, V: Debug> Debug for TryInsertError<'a, V>
source§impl<'a, V> Display for TryInsertError<'a, V>where
V: Debug,
impl<'a, V> Display for TryInsertError<'a, V>where
V: Debug,
source§impl<'a, V> Error for TryInsertError<'a, V>where
V: Debug,
impl<'a, V> Error for TryInsertError<'a, V>where
V: Debug,
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
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<'a, V: PartialEq> PartialEq for TryInsertError<'a, V>
impl<'a, V: PartialEq> PartialEq for TryInsertError<'a, V>
source§fn eq(&self, other: &TryInsertError<'a, V>) -> bool
fn eq(&self, other: &TryInsertError<'a, V>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a, V: Copy> Copy for TryInsertError<'a, V>
impl<'a, V: Eq> Eq for TryInsertError<'a, V>
impl<'a, V> StructuralPartialEq for TryInsertError<'a, V>
Auto Trait Implementations§
impl<'a, V> Freeze for TryInsertError<'a, V>where
V: Freeze,
impl<'a, V> RefUnwindSafe for TryInsertError<'a, V>where
V: RefUnwindSafe,
impl<'a, V> Send for TryInsertError<'a, V>
impl<'a, V> Sync for TryInsertError<'a, V>where
V: Sync,
impl<'a, V> Unpin for TryInsertError<'a, V>where
V: Unpin,
impl<'a, V> UnwindSafe for TryInsertError<'a, V>where
V: UnwindSafe + 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