pub struct FloatParts {
pub sign: bool,
pub exp: i32,
pub frac: u128,
pub cls: FloatClass,
}Fields§
§sign: bool§exp: i32§frac: u128§cls: FloatClassImplementations§
Source§impl FloatParts
impl FloatParts
pub fn is_nan(&self) -> bool
pub fn is_inf(&self) -> bool
Sourcepub fn default_nan<F: FloatFormat>() -> Self
pub fn default_nan<F: FloatFormat>() -> Self
Canonical quiet NaN for format F.
Trait Implementations§
Source§impl Clone for FloatParts
impl Clone for FloatParts
Source§fn clone(&self) -> FloatParts
fn clone(&self) -> FloatParts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FloatParts
Auto Trait Implementations§
impl Freeze for FloatParts
impl RefUnwindSafe for FloatParts
impl Send for FloatParts
impl Sync for FloatParts
impl Unpin for FloatParts
impl UnsafeUnpin for FloatParts
impl UnwindSafe for FloatParts
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