#[repr(u8)]pub enum LengthError {
Negative = 0,
OutOfMaxRange = 1,
}Expand description
Represents possible Length errors.
Variants§
Trait Implementations§
Source§impl Clone for LengthError
impl Clone for LengthError
Source§fn clone(&self) -> LengthError
fn clone(&self) -> LengthError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LengthError
Source§impl Debug for LengthError
impl Debug for LengthError
Source§impl Display for LengthError
impl Display for LengthError
impl Eq for LengthError
Source§impl PartialEq for LengthError
impl PartialEq for LengthError
Source§fn eq(&self, other: &LengthError) -> bool
fn eq(&self, other: &LengthError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ReprC for LengthError
impl ReprC for LengthError
impl StructuralPartialEq for LengthError
Auto Trait Implementations§
impl Freeze for LengthError
impl RefUnwindSafe for LengthError
impl Send for LengthError
impl Sync for LengthError
impl Unpin for LengthError
impl UnsafeUnpin for LengthError
impl UnwindSafe for LengthError
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