pub trait Float:
Add<Self, Output = Self>
+ Div<Self, Output = Self>
+ Mul<Self, Output = Self>
+ Sub<Self, Output = Self>
+ Copy
+ FloatWrapper
+ PartialEq
+ Neg<Output = Self>
+ AddAssign
+ SubAssign
+ MulAssign
+ DivAssign {
const _0: Self;
const _1: Self;
const _2: Self;
// Required methods
fn sqrt_(self) -> Self;
fn powi_(self, p: i32) -> Self;
fn hypot_(self, other: Self) -> Self;
fn exp_(self) -> Self;
fn sin_(self) -> Self;
fn cos_(self) -> Self;
fn is_nan_(self) -> bool;
fn is_infinite_(self) -> bool;
}Required Associated Constants§
Required Methods§
fn sqrt_(self) -> Self
fn powi_(self, p: i32) -> Self
fn hypot_(self, other: Self) -> Self
fn exp_(self) -> Self
fn sin_(self) -> Self
fn cos_(self) -> Self
fn is_nan_(self) -> bool
fn is_infinite_(self) -> bool
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.