Struct derive_more::ops::WrongVariantError
source · pub struct WrongVariantError { /* private fields */ }
Available on (crate features
add
or not
) and crate feature add
only.Expand description
Error returned by the derived implementations when an arithmetic or logic operation is invoked on mismatched enum variants.
Trait Implementations§
source§impl Clone for WrongVariantError
impl Clone for WrongVariantError
source§fn clone(&self) -> WrongVariantError
fn clone(&self) -> WrongVariantError
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 Debug for WrongVariantError
impl Debug for WrongVariantError
source§impl Display for WrongVariantError
impl Display for WrongVariantError
source§impl Error for WrongVariantError
Available on crate feature std
only.
impl Error for WrongVariantError
Available on crate feature
std
only.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
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 Copy for WrongVariantError
Auto Trait Implementations§
impl RefUnwindSafe for WrongVariantError
impl Send for WrongVariantError
impl Sync for WrongVariantError
impl Unpin for WrongVariantError
impl UnwindSafe for WrongVariantError
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