pub enum FloatConversionError {
NaN,
Infinite,
PosOverflow,
NegOverflow,
}
Expand description
The error type that may happen when converting a f32
or f64
to any other numerical
representation.
Variants§
Trait Implementations§
source§impl Clone for FloatConversionError
impl Clone for FloatConversionError
source§fn clone(&self) -> FloatConversionError
fn clone(&self) -> FloatConversionError
Returns a copy 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 FloatConversionError
impl Debug for FloatConversionError
source§impl Display for FloatConversionError
impl Display for FloatConversionError
source§impl Error for FloatConversionError
impl Error for FloatConversionError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<FloatConversionError> for FloatConversionError
impl PartialEq<FloatConversionError> for FloatConversionError
source§fn eq(&self, other: &FloatConversionError) -> bool
fn eq(&self, other: &FloatConversionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FloatConversionError
impl Eq for FloatConversionError
impl StructuralEq for FloatConversionError
impl StructuralPartialEq for FloatConversionError
Auto Trait Implementations§
impl RefUnwindSafe for FloatConversionError
impl Send for FloatConversionError
impl Sync for FloatConversionError
impl Unpin for FloatConversionError
impl UnwindSafe for FloatConversionError
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