Enum tor_units::Error [−][src]
#[non_exhaustive]
pub enum Error {
BelowLowerBound(i32, i32),
AboveUpperBound(i32, i32),
Negative,
Unrepresentable,
Overflow,
Uninhabited,
}
Expand description
Conversion errors from converting a value into a BoundedInt32
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
A passed value was below the lower bound for the type.
A passed value was above the upper bound for the type.
Tried to convert a negative value to an unsigned type.
Tried to parse a value that was not representable as the underlying type.
We encountered some kind of integer overflow when converting a number.
Tried to instantiate an uninhabited type.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more