pub struct FloatingPointComponents(/* private fields */);Expand description
A mantissa-exponent-sign triple that represents a floating point number.
Implementations§
Source§impl FloatingPointComponents
impl FloatingPointComponents
Sourcepub fn as_f32(&self) -> f32
pub fn as_f32(&self) -> f32
Returns the f32 value of these FloatingPointComponents.
Sourcepub fn as_f64(&self) -> f64
pub fn as_f64(&self) -> f64
Returns the f64 value of these FloatingPointComponents.
Trait Implementations§
Source§impl Clone for FloatingPointComponents
impl Clone for FloatingPointComponents
Source§fn clone(&self) -> FloatingPointComponents
fn clone(&self) -> FloatingPointComponents
Returns a duplicate 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 FloatingPointComponents
impl Debug for FloatingPointComponents
Source§impl Hash for FloatingPointComponents
impl Hash for FloatingPointComponents
Source§impl Into<f32> for &FloatingPointComponents
impl Into<f32> for &FloatingPointComponents
Source§impl Into<f32> for FloatingPointComponents
impl Into<f32> for FloatingPointComponents
Source§impl Into<f64> for &FloatingPointComponents
impl Into<f64> for &FloatingPointComponents
Source§impl Into<f64> for FloatingPointComponents
impl Into<f64> for FloatingPointComponents
Source§impl PartialEq for FloatingPointComponents
impl PartialEq for FloatingPointComponents
impl Eq for FloatingPointComponents
impl StructuralPartialEq for FloatingPointComponents
Auto Trait Implementations§
impl Freeze for FloatingPointComponents
impl RefUnwindSafe for FloatingPointComponents
impl Send for FloatingPointComponents
impl Sync for FloatingPointComponents
impl Unpin for FloatingPointComponents
impl UnwindSafe for FloatingPointComponents
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