pub trait FloatingPoint:
Numeric
+ Neg<Output = Self>
+ Add<Self, Output = Self>
+ AddAssign<Self>
+ Div<Self, Output = Self>
+ DivAssign<Self>
+ Mul<Self, Output = Self>
+ MulAssign<Self>
+ Rem<Self, Output = Self>
+ RemAssign<Self>
+ Sub<Self, Output = Self>
+ SubAssign<Self> {
// Required methods
fn powi(self, power: i32) -> Self;
fn round(self) -> Self;
fn fract(self) -> Self;
fn rem_euclid(self, rhs: Self) -> Self;
fn sqrt(self) -> Self;
fn ln(self) -> Self;
fn abs(self) -> Self;
fn floor(self) -> Self;
fn to_bit_string(&self) -> String;
}Expand description
A trait shared by all the floating point types.
Required Methods§
Sourcefn rem_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
Remainder of the euclidean division.
Sourcefn to_bit_string(&self) -> String
fn to_bit_string(&self) -> String
Returns a bit representation of the float, with the sign, exponent, and mantissa bits separated by whitespaces for increased readability.
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.