pub struct Ieee64(/* private fields */);Expand description
Software IEEE-754 binary64 (53-bit significand, 11-bit exponent). Stored as u64 bits.
Implementations§
Source§impl Ieee64
impl Ieee64
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: Ieee64) -> Ieee64
pub fn next_after(self, other: Ieee64) -> Ieee64
Next representable value toward other.
Trait Implementations§
impl Copy for Ieee64
Auto Trait Implementations§
impl Freeze for Ieee64
impl RefUnwindSafe for Ieee64
impl Send for Ieee64
impl Sync for Ieee64
impl Unpin for Ieee64
impl UnsafeUnpin for Ieee64
impl UnwindSafe for Ieee64
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