pub struct FloatValue(/* private fields */);Expand description
Lossless float value captured by generated float range errors.
The value stores the original to_bits() representation so NaN payloads
and signed zero can be preserved while keeping equality total.
Implementations§
Trait Implementations§
Source§impl Clone for FloatValue
impl Clone for FloatValue
Source§fn clone(&self) -> FloatValue
fn clone(&self) -> FloatValue
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 moreSource§impl Debug for FloatValue
impl Debug for FloatValue
Source§impl Display for FloatValue
impl Display for FloatValue
Source§impl From<f32> for FloatValue
impl From<f32> for FloatValue
Source§impl From<f64> for FloatValue
impl From<f64> for FloatValue
Source§impl PartialEq for FloatValue
impl PartialEq for FloatValue
Source§fn eq(&self, other: &FloatValue) -> bool
fn eq(&self, other: &FloatValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Valuable for FloatValue
Available on crate feature valuable only.
impl Valuable for FloatValue
Available on crate feature
valuable only.impl Copy for FloatValue
impl Eq for FloatValue
impl StructuralPartialEq for FloatValue
Auto Trait Implementations§
impl Freeze for FloatValue
impl RefUnwindSafe for FloatValue
impl Send for FloatValue
impl Sync for FloatValue
impl Unpin for FloatValue
impl UnsafeUnpin for FloatValue
impl UnwindSafe for FloatValue
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