#[repr(u8)]pub enum FloatClass {
NegativeInfinity = 0,
NegativeNormal = 1,
NegativeSubnormal = 2,
NegativeZero = 3,
PositiveInfinity = 4,
PositiveNormal = 5,
PositiveSubnormal = 6,
PositiveZero = 7,
QuietNaN = 8,
SignalingNaN = 9,
}
Expand description
float classification
Variants§
NegativeInfinity = 0
negative infinity
NegativeNormal = 1
negative normal
NegativeSubnormal = 2
negative subnormal
NegativeZero = 3
negative zero
PositiveInfinity = 4
positive infinity
PositiveNormal = 5
positive normal
PositiveSubnormal = 6
positive subnormal
PositiveZero = 7
positive zero
QuietNaN = 8
quiet NaN
SignalingNaN = 9
signaling NaN
Implementations§
Source§impl FloatClass
impl FloatClass
Sourcepub fn is_negative_infinity(self) -> bool
pub fn is_negative_infinity(self) -> bool
return true
if self
is NegativeInfinity
Sourcepub fn is_negative_normal(self) -> bool
pub fn is_negative_normal(self) -> bool
return true
if self
is NegativeNormal
Sourcepub fn is_negative_subnormal(self) -> bool
pub fn is_negative_subnormal(self) -> bool
return true
if self
is NegativeSubnormal
Sourcepub fn is_negative_zero(self) -> bool
pub fn is_negative_zero(self) -> bool
return true
if self
is NegativeZero
Sourcepub fn is_positive_infinity(self) -> bool
pub fn is_positive_infinity(self) -> bool
return true
if self
is PositiveInfinity
Sourcepub fn is_positive_normal(self) -> bool
pub fn is_positive_normal(self) -> bool
return true
if self
is PositiveNormal
Sourcepub fn is_positive_subnormal(self) -> bool
pub fn is_positive_subnormal(self) -> bool
return true
if self
is PositiveSubnormal
Sourcepub fn is_positive_zero(self) -> bool
pub fn is_positive_zero(self) -> bool
return true
if self
is PositiveZero
Sourcepub fn is_quiet_nan(self) -> bool
pub fn is_quiet_nan(self) -> bool
return true
if self
is QuietNaN
Sourcepub fn is_signaling_nan(self) -> bool
pub fn is_signaling_nan(self) -> bool
return true
if self
is SignalingNaN
Sourcepub fn is_infinity(self) -> bool
pub fn is_infinity(self) -> bool
return true
if self
is infinity
Sourcepub fn is_subnormal(self) -> bool
pub fn is_subnormal(self) -> bool
return true
if self
is subnormal
Sourcepub fn is_subnormal_or_zero(self) -> bool
pub fn is_subnormal_or_zero(self) -> bool
return true
if self
is subnormal or zero
Trait Implementations§
Source§impl Clone for FloatClass
impl Clone for FloatClass
Source§fn clone(&self) -> FloatClass
fn clone(&self) -> FloatClass
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 FloatClass
impl Debug for FloatClass
Source§impl Hash for FloatClass
impl Hash for FloatClass
Source§impl Neg for FloatClass
impl Neg for FloatClass
Source§impl PartialEq for FloatClass
impl PartialEq for FloatClass
impl Copy for FloatClass
impl Eq for FloatClass
impl StructuralPartialEq for FloatClass
Auto Trait Implementations§
impl Freeze for FloatClass
impl RefUnwindSafe for FloatClass
impl Send for FloatClass
impl Sync for FloatClass
impl Unpin for FloatClass
impl UnwindSafe for FloatClass
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