#[repr(u8)]pub enum LengthError {
TooLarge = 0,
Negative = 1,
}
Expand description
Represents errors when building new Length
instance.
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 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LengthError
impl Debug for LengthError
Source§impl Hash for LengthError
impl Hash for LengthError
Source§impl PartialEq for LengthError
impl PartialEq for LengthError
impl Eq 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 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