pub enum BinaryError {
Mismatch(WrongVariantError),
Unit(UnitError),
}
Expand description
Possible errors returned by the derived implementations of binary arithmetic or logic operations.
Variants§
Mismatch(WrongVariantError)
Operation is attempted between mismatched enum variants.
Unit(UnitError)
Operation is attempted on unit-like enum variants.
Trait Implementations§
Source§impl Clone for BinaryError
impl Clone for BinaryError
Source§fn clone(&self) -> BinaryError
fn clone(&self) -> BinaryError
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 BinaryError
impl Debug for BinaryError
Source§impl Display for BinaryError
impl Display for BinaryError
Source§impl Error for BinaryError
impl Error for BinaryError
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 Copy for BinaryError
Auto Trait Implementations§
impl Freeze for BinaryError
impl RefUnwindSafe for BinaryError
impl Send for BinaryError
impl Sync for BinaryError
impl Unpin for BinaryError
impl UnwindSafe for BinaryError
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