Struct double_map::InsertError
source · [−]Expand description
The error returned by insert method (and also
try_insert method) when there is no way to distinguish
how given value with key #1 and key #2 should be inserted. It is also part of the
TryInsertError enum which if returned by try_insert method
of DHashMap. For more information about error kinds look to ErrorKind enum.
Contains the ErrorKind enum, the provided keys and value that were not inserted.
These returned keys and value can be used for another purpose.
Fields
error: ErrorKindA view into an error kind returned by entry,
insert, try_insert methods of the DHashMap.
It is part of the EntryError structure, InsertError structure and TryInsertError
enum. Explains entry, insert,
try_insert methods fail. For more information about error
kind look to ErrorKind enum.
keys: (K1, K2)The provided keys that was returned because of error. For more information about
error kind look to ErrorKind enum.
value: VThe value which was not inserted because of the error. For more information about error
kind look to ErrorKind enum.
Trait Implementations
sourceimpl<K1: Debug, K2: Debug, V: Debug> Error for InsertError<K1, K2, V>
impl<K1: Debug, K2: Debug, V: Debug> Error for InsertError<K1, K2, V>
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl<K1, K2, V> RefUnwindSafe for InsertError<K1, K2, V> where
K1: RefUnwindSafe,
K2: RefUnwindSafe,
V: RefUnwindSafe,
impl<K1, K2, V> Send for InsertError<K1, K2, V> where
K1: Send,
K2: Send,
V: Send,
impl<K1, K2, V> Sync for InsertError<K1, K2, V> where
K1: Sync,
K2: Sync,
V: Sync,
impl<K1, K2, V> Unpin for InsertError<K1, K2, V> where
K1: Unpin,
K2: Unpin,
V: Unpin,
impl<K1, K2, V> UnwindSafe for InsertError<K1, K2, V> where
K1: UnwindSafe,
K2: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more