Enum uom::str::ParseQuantityError
source[−]pub enum ParseQuantityError {
NoSeparator,
ValueParseError,
UnknownUnit,
}
Expand description
Represents an error encountered while parsing a string into a Quantity
.
Variants
NoSeparator
No separators (spaces) were encountered.
ValueParseError
An error occurred while parsing the value (first) portion of the string.
Due to exhaustiveness and type system limitations, this variant does not encode the underlying parse error.
UnknownUnit
The unit used wasn’t found for this quantity.
Notes
For now, only abbreviations are supported, so this error may be encountered even if the unit name (description) is correct.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ParseQuantityError
impl Send for ParseQuantityError
impl Sync for ParseQuantityError
impl Unpin for ParseQuantityError
impl UnwindSafe for ParseQuantityError
Blanket Implementations
Mutably borrows from an owned value. Read more