pub enum Decoder2Error<A, B> {
First(A),
Second(B),
}Expand description
Error type for Decoder2.
Variants§
Trait Implementations§
Source§impl<A: Clone, B: Clone> Clone for Decoder2Error<A, B>
impl<A: Clone, B: Clone> Clone for Decoder2Error<A, B>
Source§fn clone(&self) -> Decoder2Error<A, B>
fn clone(&self) -> Decoder2Error<A, B>
Returns a duplicate 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, B> Display for Decoder2Error<A, B>
impl<A, B> Display for Decoder2Error<A, B>
Source§impl<A, B> Error for Decoder2Error<A, B>
Available on crate feature std only.
impl<A, B> Error for Decoder2Error<A, B>
Available on crate feature
std only.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<A: Eq, B: Eq> Eq for Decoder2Error<A, B>
impl<A, B> StructuralPartialEq for Decoder2Error<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for Decoder2Error<A, B>
impl<A, B> RefUnwindSafe for Decoder2Error<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Decoder2Error<A, B>
impl<A, B> Sync for Decoder2Error<A, B>
impl<A, B> Unpin for Decoder2Error<A, B>
impl<A, B> UnwindSafe for Decoder2Error<A, B>where
A: UnwindSafe,
B: 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