pub enum Class {
Nan,
Infinite,
Normal,
Subnormal,
Zero,
}Expand description
What a value is, in the sense of IEEE 754-2008 clause 5.7.2.
The same five classes core::num::FpCategory names, spelled here so
that a no_std caller matching on them does not have to reach into
core::num for a type this crate could have owned.
Variants§
Nan
A quiet or signalling NaN.
Infinite
Positive or negative infinity.
Normal
A finite value with the implicit leading one.
Subnormal
A finite value below MIN_POSITIVE, with no leading one.
Zero
Positive or negative zero.
Trait Implementations§
impl Copy for Class
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnsafeUnpin for Class
impl UnwindSafe for Class
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