pub struct Ieee32(/* private fields */);Expand description
Software IEEE-754 binary32 (24-bit significand, 8-bit exponent). Stored as u32 bits.
Implementations§
Source§impl Ieee32
impl Ieee32
Sourcepub fn classify(self) -> FpCategory
pub fn classify(self) -> FpCategory
Classify the value.
Sourcepub fn is_infinite(self) -> bool
pub fn is_infinite(self) -> bool
True if the value is (\pm\infty).
Sourcepub fn is_subnormal(self) -> bool
pub fn is_subnormal(self) -> bool
True if the value is subnormal.
Sourcepub fn is_sign_negative(self) -> bool
pub fn is_sign_negative(self) -> bool
True if the sign bit is set.
Sourcepub fn next_after(self, other: Self) -> Self
pub fn next_after(self, other: Self) -> Self
Next representable value toward other.
Trait Implementations§
impl Copy for Ieee32
Auto Trait Implementations§
impl Freeze for Ieee32
impl RefUnwindSafe for Ieee32
impl Send for Ieee32
impl Sync for Ieee32
impl Unpin for Ieee32
impl UnsafeUnpin for Ieee32
impl UnwindSafe for Ieee32
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more