Enum icu::experimental::units::ratio::RatioFromStrError
source · pub enum RatioFromStrError {
DivisionByZero,
MultipleSlashes,
NonNumericCharactersInFractions,
MultipleScientificNotations,
MultipleDecimalPoints,
ExponentPartIsNotAnInteger,
ParsingBigIntError(ParseBigIntError),
}
Expand description
Represents an error when the ratio string is invalid and cannot be parsed.
Variants§
DivisionByZero
Represents an error when the ratio string is divided by zero.
MultipleSlashes
Represents an error when the ratio string contains multiple slashes. For example, “1/2/3”.
NonNumericCharactersInFractions
Represents an error when the ratio string contains non-numeric characters in fractions. For example, “1/2A”.
MultipleScientificNotations
Represents an error when the ratio string contains multiple scientific notations. For example, “1.5E6E6”.
MultipleDecimalPoints
Represents an error when the ratio string contains multiple decimal points. For example, “1.5.6”.
ExponentPartIsNotAnInteger
Represents an error when the exponent part of the ratio string is not an integer. For example, “1.5E6.5”.
ParsingBigIntError(ParseBigIntError)
Represents an error when the ratio string is dificient in some other way.
Trait Implementations§
source§impl Debug for RatioFromStrError
impl Debug for RatioFromStrError
source§impl PartialEq for RatioFromStrError
impl PartialEq for RatioFromStrError
impl StructuralPartialEq for RatioFromStrError
Auto Trait Implementations§
impl Freeze for RatioFromStrError
impl RefUnwindSafe for RatioFromStrError
impl Send for RatioFromStrError
impl Sync for RatioFromStrError
impl Unpin for RatioFromStrError
impl UnwindSafe for RatioFromStrError
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> 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