pub struct UnitError { /* private fields */ }
Expand description
Error returned by the derived implementations when an arithmetic or logic operation is invoked on a unit-like variant of an enum.
Trait Implementations§
impl Copy for UnitError
Auto Trait Implementations§
impl Freeze for UnitError
impl RefUnwindSafe for UnitError
impl Send for UnitError
impl Sync for UnitError
impl Unpin for UnitError
impl UnwindSafe for UnitError
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