pub struct NotZeroError<T>(pub T);
Expand description
A not zero value for T
was observed, but zero was expected.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: Debug> Debug for NotZeroError<T>
impl<T: Debug> Debug for NotZeroError<T>
Source§impl<T: PartialEq> PartialEq for NotZeroError<T>
impl<T: PartialEq> PartialEq for NotZeroError<T>
impl<T: Eq> Eq for NotZeroError<T>
impl<T> StructuralPartialEq for NotZeroError<T>
Auto Trait Implementations§
impl<T> Freeze for NotZeroError<T>where
T: Freeze,
impl<T> RefUnwindSafe for NotZeroError<T>where
T: RefUnwindSafe,
impl<T> Send for NotZeroError<T>where
T: Send,
impl<T> Sync for NotZeroError<T>where
T: Sync,
impl<T> Unpin for NotZeroError<T>where
T: Unpin,
impl<T> UnwindSafe for NotZeroError<T>where
T: 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