pub enum ConversionError {
NoData,
InvalidChar(char),
NotInRange {
permitted: String,
error: String,
},
UnexpectedEnd,
Infinity,
NegInfinity,
NotANumber,
TryFromIntError,
}
Variants§
NoData
InvalidChar(char)
NotInRange
UnexpectedEnd
Infinity
f32::INFINITY, f64::INFINITY
NegInfinity
f32::NEG_INFINITY, f64::NEG_INFINITY
NotANumber
f32::NAN, f64::NAN
TryFromIntError
std::num::TryFromIntError
is always converted to ConversionError::TryFromIntError
.
For example, if you try to convert a BigInt
into a u32
, it’s first converted to i64
, then to u32
.
If the latter one fails, Rust emits std::num::TryFromIntError
, which hmath cannot understand.
In this case hmath will throw this error.
Trait Implementations§
Source§impl Clone for ConversionError
impl Clone for ConversionError
Source§fn clone(&self) -> ConversionError
fn clone(&self) -> ConversionError
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 ConversionError
impl Debug for ConversionError
Source§impl From<TryFromIntError> for ConversionError
impl From<TryFromIntError> for ConversionError
Source§fn from(_: TryFromIntError) -> Self
fn from(_: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConversionError
impl PartialEq for ConversionError
impl StructuralPartialEq for ConversionError
Auto Trait Implementations§
impl Freeze for ConversionError
impl RefUnwindSafe for ConversionError
impl Send for ConversionError
impl Sync for ConversionError
impl Unpin for ConversionError
impl UnwindSafe for ConversionError
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