Struct aterm::BrokenF32
[−]
[src]
pub struct BrokenF32(pub f32);
An f32 with broken Eq and Hash implementations. To quote shepmaster (except this is an f32):
Basically, if you want to treat a f64 as a set of bits that have no meaning, well, we can treat them as an equivalently sized bag of bits that know how to be hashed and bitwise-compared. Don't be surprised when one of the 16 million NaN values doesn't equal another one. http://stackoverflow.com/q/39638363/859279
Trait Implementations
impl Debug for BrokenF32
[src]
impl Clone for BrokenF32
[src]
fn clone(&self) -> BrokenF32
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for BrokenF32
[src]
impl Hash for BrokenF32
[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for BrokenF32
[src]
fn eq(&self, other: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.