Enum jomini::ScalarError [−][src]
pub enum ScalarError { AllDigits, Overflow, InvalidBool, PrecisionLoss(f64), }
Expand description
An error that can occur when converting a scalar into the requested type.
Variants
The scalar did not contain only numbers
The scalar caused an overflow when calculating its numerical value
The scalar was not a recognized boolean value
PrecisionLoss(f64)
The scalar would lose precision if the given float was returned
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ScalarError
impl Send for ScalarError
impl Sync for ScalarError
impl Unpin for ScalarError
impl UnwindSafe for ScalarError
Blanket Implementations
Mutably borrows from an owned value. Read more