pub struct FloatValue {
pub number: isize,
}
Expand description
Wrapper around an f32 value that is internally casted to an isize, in order to provide hash-ability (to avoid numerical instability).
Fields§
§number: isize
Implementations§
Trait Implementations§
Source§impl Clone for FloatValue
impl Clone for FloatValue
Source§fn clone(&self) -> FloatValue
fn clone(&self) -> FloatValue
Returns a copy 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 FloatValue
impl Debug for FloatValue
Source§impl Default for FloatValue
impl Default for FloatValue
Source§impl Display for FloatValue
impl Display for FloatValue
Source§impl From<f32> for FloatValue
impl From<f32> for FloatValue
Source§impl Hash for FloatValue
impl Hash for FloatValue
Source§impl Ord for FloatValue
impl Ord for FloatValue
Source§fn cmp(&self, other: &FloatValue) -> Ordering
fn cmp(&self, other: &FloatValue) -> Ordering
1.21.0 · 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
Source§impl PartialEq for FloatValue
impl PartialEq for FloatValue
Source§impl PartialOrd for FloatValue
impl PartialOrd for FloatValue
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)