pub enum InvalidByteQty {
Overflow,
UnknownUnit,
UnknownUnitMissingB,
BadSyntax,
Negative,
NaN,
BadValue,
}
Expand description
Error parsing (or deserialising) a ByteQty
Variants§
Overflow
Value bigger than usize::MAX
UnknownUnit
Unknown unit
UnknownUnitMissingB
Unknown unit, probably because the B at the end was missing
We insist on the B
so that all our units end in B
or iB
.
BadSyntax
Bad syntax
Negative
Negative value
NaN
NaN
BadValue
BadValue
Trait Implementations§
Source§impl Clone for InvalidByteQty
impl Clone for InvalidByteQty
Source§fn clone(&self) -> InvalidByteQty
fn clone(&self) -> InvalidByteQty
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 InvalidByteQty
impl Debug for InvalidByteQty
Source§impl Display for InvalidByteQty
impl Display for InvalidByteQty
Source§impl Error for InvalidByteQty
impl Error for InvalidByteQty
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Hash for InvalidByteQty
impl Hash for InvalidByteQty
Source§impl PartialEq for InvalidByteQty
impl PartialEq for InvalidByteQty
impl Copy for InvalidByteQty
impl Eq for InvalidByteQty
impl StructuralPartialEq for InvalidByteQty
Auto Trait Implementations§
impl Freeze for InvalidByteQty
impl RefUnwindSafe for InvalidByteQty
impl Send for InvalidByteQty
impl Sync for InvalidByteQty
impl Unpin for InvalidByteQty
impl UnwindSafe for InvalidByteQty
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more