#[non_exhaustive]pub struct ZeroLenError;
Expand description
Error when converting from a DoubledLen
to NonZeroUsize
or Alignment
.
Trait Implementations§
Source§impl Clone for ZeroLenError
impl Clone for ZeroLenError
Source§fn clone(&self) -> ZeroLenError
fn clone(&self) -> ZeroLenError
Returns a duplicate 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 ZeroLenError
impl Debug for ZeroLenError
Source§impl Display for ZeroLenError
impl Display for ZeroLenError
Source§impl Hash for ZeroLenError
impl Hash for ZeroLenError
Source§impl Ord for ZeroLenError
impl Ord for ZeroLenError
Source§fn cmp(&self, other: &ZeroLenError) -> Ordering
fn cmp(&self, other: &ZeroLenError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ZeroLenError
impl PartialEq for ZeroLenError
Source§impl PartialOrd for ZeroLenError
impl PartialOrd for ZeroLenError
impl Copy for ZeroLenError
impl Eq for ZeroLenError
impl StructuralPartialEq for ZeroLenError
Auto Trait Implementations§
impl Freeze for ZeroLenError
impl RefUnwindSafe for ZeroLenError
impl Send for ZeroLenError
impl Sync for ZeroLenError
impl Unpin for ZeroLenError
impl UnwindSafe for ZeroLenError
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