pub enum Error<K, V> {
Key(K),
Value(V),
}Expand description
Possible errors when decoding a map entry.
Variants§
Implementations§
Trait Implementations§
Source§impl<K, V> Error for Error<K, V>
impl<K, V> Error for Error<K, V>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
impl<K: Copy, V: Copy> Copy for Error<K, V>
impl<K: Eq, V: Eq> Eq for Error<K, V>
impl<K, V> StructuralPartialEq for Error<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for Error<K, V>
impl<K, V> RefUnwindSafe for Error<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Error<K, V>
impl<K, V> Sync for Error<K, V>
impl<K, V> Unpin for Error<K, V>
impl<K, V> UnwindSafe for Error<K, V>where
K: UnwindSafe,
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