[−][src]Enum simple_soft_float::FloatClass
float classification
Variants
negative infinity
negative normal
negative subnormal
negative zero
positive infinity
positive normal
positive subnormal
positive zero
quiet NaN
signaling NaN
Methods
impl FloatClass
[src]
pub fn sign(self) -> Option<Sign>
[src]
get sign of non-NaN values
pub fn abs(self) -> Self
[src]
convert negative to positive
pub fn is_negative_infinity(self) -> bool
[src]
return true
if self
is NegativeInfinity
pub fn is_negative_normal(self) -> bool
[src]
return true
if self
is NegativeNormal
pub fn is_negative_subnormal(self) -> bool
[src]
return true
if self
is NegativeSubnormal
pub fn is_negative_zero(self) -> bool
[src]
return true
if self
is NegativeZero
pub fn is_positive_infinity(self) -> bool
[src]
return true
if self
is PositiveInfinity
pub fn is_positive_normal(self) -> bool
[src]
return true
if self
is PositiveNormal
pub fn is_positive_subnormal(self) -> bool
[src]
return true
if self
is PositiveSubnormal
pub fn is_positive_zero(self) -> bool
[src]
return true
if self
is PositiveZero
pub fn is_quiet_nan(self) -> bool
[src]
return true
if self
is QuietNaN
pub fn is_signaling_nan(self) -> bool
[src]
return true
if self
is SignalingNaN
pub fn is_infinity(self) -> bool
[src]
return true
if self
is infinity
pub fn is_normal(self) -> bool
[src]
return true
if self
is NegativeNormal
or PositiveNormal
pub fn is_subnormal(self) -> bool
[src]
return true
if self
is subnormal
pub fn is_zero(self) -> bool
[src]
return true
if self
is zero
pub fn is_nan(self) -> bool
[src]
return true
if self
is NaN
pub fn is_finite(self) -> bool
[src]
return true
if self
is finite (not NaN or infinity)
pub fn is_subnormal_or_zero(self) -> bool
[src]
return true
if self
is subnormal or zero
Trait Implementations
impl Clone for FloatClass
[src]
fn clone(&self) -> FloatClass
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FloatClass
[src]
impl Debug for FloatClass
[src]
impl Eq for FloatClass
[src]
impl Hash for FloatClass
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Neg for FloatClass
[src]
impl PartialEq<FloatClass> for FloatClass
[src]
fn eq(&self, other: &FloatClass) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for FloatClass
[src]
impl StructuralPartialEq for FloatClass
[src]
Auto Trait Implementations
impl RefUnwindSafe for FloatClass
impl Send for FloatClass
impl Sync for FloatClass
impl Unpin for FloatClass
impl UnwindSafe for FloatClass
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,