pub trait FloatExt: Float {
const NEG_HALF: Self;
// Required methods
fn hash_bits<H: Hasher>(self, hasher: &mut H);
fn rem_euclid(self, rhs: Self) -> Self;
fn next_up(self) -> Self;
fn next_down(self) -> Self;
}
Expand description
Floating point types
Required Associated Constants§
Required Methods§
Sourcefn hash_bits<H: Hasher>(self, hasher: &mut H)
fn hash_bits<H: Hasher>(self, hasher: &mut H)
Hash the binary representation of the floating point value
Sourcefn rem_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
Calculates the least nonnegative remainder of self (mod rhs).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.