pub trait Float {
Show 36 methods
// Required methods
fn is_nan(&self) -> bool;
fn is_infinite(&self) -> bool;
fn is_finite(&self) -> bool;
fn is_normal(&self) -> bool;
fn is_subnormal(&self) -> bool;
fn floor(&self) -> Self;
fn ceil(&self) -> Self;
fn round(&self) -> Self;
fn trunc(&self) -> Self;
fn fract(&self) -> Self;
fn recip(&self) -> Self;
fn pow(&self, n: &Self) -> Self;
fn sqrt(&self) -> Self;
fn exp(&self) -> Self;
fn exp2(&self) -> Self;
fn ln(&self) -> Self;
fn log(&self, base: &Self) -> Self;
fn log2(&self) -> Self;
fn log10(&self) -> Self;
fn cbrt(&self) -> Self;
fn hypot(&self, n: &Self) -> Self;
fn sin(&self) -> Self;
fn cos(&self) -> Self;
fn tan(&self) -> Self;
fn asin(&self) -> Self;
fn acos(&self) -> Self;
fn atan(&self) -> Self;
fn atan2(&self, n: &Self) -> Self;
fn sinh(&self) -> Self;
fn cosh(&self) -> Self;
fn tanh(&self) -> Self;
fn asinh(&self) -> Self;
fn acosh(&self) -> Self;
fn atanh(&self) -> Self;
fn to_degrees(&self) -> Self;
fn to_radians(&self) -> Self;
}Required Methods§
fn is_nan(&self) -> bool
fn is_infinite(&self) -> bool
fn is_finite(&self) -> bool
fn is_normal(&self) -> bool
fn is_subnormal(&self) -> bool
fn floor(&self) -> Self
fn ceil(&self) -> Self
fn round(&self) -> Self
fn trunc(&self) -> Self
fn fract(&self) -> Self
fn recip(&self) -> Self
fn pow(&self, n: &Self) -> Self
fn sqrt(&self) -> Self
fn exp(&self) -> Self
fn exp2(&self) -> Self
fn ln(&self) -> Self
fn log(&self, base: &Self) -> Self
fn log2(&self) -> Self
fn log10(&self) -> Self
fn cbrt(&self) -> Self
fn hypot(&self, n: &Self) -> Self
fn sin(&self) -> Self
fn cos(&self) -> Self
fn tan(&self) -> Self
fn asin(&self) -> Self
fn acos(&self) -> Self
fn atan(&self) -> Self
fn atan2(&self, n: &Self) -> Self
fn sinh(&self) -> Self
fn cosh(&self) -> Self
fn tanh(&self) -> Self
fn asinh(&self) -> Self
fn acosh(&self) -> Self
fn atanh(&self) -> Self
fn to_degrees(&self) -> Self
fn to_radians(&self) -> Self
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.