pub struct CanonicalDouble(/* private fields */);Expand description
A finite IEEE-754 double represented by its exact bits.
Implementations§
Source§impl CanonicalDouble
impl CanonicalDouble
Sourcepub fn new(value: f64) -> Result<Self, Diagnostic>
pub fn new(value: f64) -> Result<Self, Diagnostic>
Construct from a finite double, preserving signed zero and subnormals.
Sourcepub fn from_bits(bits: u64) -> Result<Self, Diagnostic>
pub fn from_bits(bits: u64) -> Result<Self, Diagnostic>
Construct from finite IEEE bits.
Trait Implementations§
Source§impl Clone for CanonicalDouble
impl Clone for CanonicalDouble
Source§fn clone(&self) -> CanonicalDouble
fn clone(&self) -> CanonicalDouble
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 CanonicalDouble
Source§impl Debug for CanonicalDouble
impl Debug for CanonicalDouble
impl Eq for CanonicalDouble
Source§impl Hash for CanonicalDouble
impl Hash for CanonicalDouble
Source§impl Ord for CanonicalDouble
impl Ord for CanonicalDouble
Source§fn cmp(&self, other: &CanonicalDouble) -> Ordering
fn cmp(&self, other: &CanonicalDouble) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CanonicalDouble
impl PartialEq for CanonicalDouble
Source§impl PartialOrd for CanonicalDouble
impl PartialOrd for CanonicalDouble
impl StructuralPartialEq for CanonicalDouble
Auto Trait Implementations§
impl Freeze for CanonicalDouble
impl RefUnwindSafe for CanonicalDouble
impl Send for CanonicalDouble
impl Sync for CanonicalDouble
impl Unpin for CanonicalDouble
impl UnsafeUnpin for CanonicalDouble
impl UnwindSafe for CanonicalDouble
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