pub struct NonZeroError;Expand description
Error returned when attempting to convert zero to a non-zero number type.
Trait Implementations§
Source§impl Clone for NonZeroError
impl Clone for NonZeroError
Source§fn clone(&self) -> NonZeroError
fn clone(&self) -> NonZeroError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NonZeroError
impl Debug for NonZeroError
Source§impl PartialEq for NonZeroError
impl PartialEq for NonZeroError
impl Copy for NonZeroError
impl Eq for NonZeroError
impl StructuralPartialEq for NonZeroError
Auto Trait Implementations§
impl Freeze for NonZeroError
impl RefUnwindSafe for NonZeroError
impl Send for NonZeroError
impl Sync for NonZeroError
impl Unpin for NonZeroError
impl UnwindSafe for NonZeroError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)