pub trait FloatLike<Scalar>:
Neg<Output = Self>
+ Add<Output = Self>
+ Sub<Output = Self>
+ Mul<Output = Self>
+ Div<Output = Self>
+ for<'a> Add<&'a Self, Output = Self>
+ for<'a> Sub<&'a Self, Output = Self>
+ for<'a> Mul<&'a Self, Output = Self>
+ for<'a> Div<&'a Self, Output = Self>
+ Add<Scalar, Output = Self>
+ Sub<Scalar, Output = Self>
+ Mul<Scalar, Output = Self>
+ Div<Scalar, Output = Self>
+ for<'a> Add<&'a Scalar, Output = Self>
+ for<'a> Sub<&'a Scalar, Output = Self>
+ for<'a> Mul<&'a Scalar, Output = Self>
+ for<'a> Div<&'a Scalar, Output = Self>
+ AddAssign<Self>
+ SubAssign<Self>
+ MulAssign<Self>
+ DivAssign<Self>
+ for<'a> AddAssign<&'a Self>
+ for<'a> SubAssign<&'a Self>
+ for<'a> MulAssign<&'a Self>
+ for<'a> DivAssign<&'a Self>
+ AddAssign<Scalar>
+ SubAssign<Scalar>
+ MulAssign<Scalar>
+ DivAssign<Scalar>
+ for<'a> AddAssign<&'a Scalar>
+ for<'a> SubAssign<&'a Scalar>
+ for<'a> MulAssign<&'a Scalar>
+ for<'a> DivAssign<&'a Scalar>
+ Sum<Self>
+ for<'a> Sum<&'a Self>
+ Sized
+ Clone
+ Copy
+ Zero
+ One
+ PartialOrd
+ PartialOrd<Scalar>
+ PartialEq
+ PartialEq<Scalar>
+ Debug
+ From<Scalar>
+ Into<Scalar> {
Show 25 methods
// Required methods
fn sin(self) -> Self;
fn cos(self) -> Self;
fn tan(self) -> Self;
fn sinh(self) -> Self;
fn cosh(self) -> Self;
fn tanh(self) -> Self;
fn ln(self) -> Self;
fn log(self, base: Scalar) -> Self;
fn log2(self) -> Self;
fn log10(self) -> Self;
fn exp(self) -> Self;
fn exp2(self) -> Self;
fn powf(self, exponent: Scalar) -> Self;
fn powi(self, exponent: i32) -> Self;
fn sqrt(self) -> Self;
fn cbrt(self) -> Self;
fn recip(self) -> Self;
fn abs(self) -> Self;
fn asin(self) -> Self;
fn acos(self) -> Self;
fn atan(self) -> Self;
fn asinh(self) -> Self;
fn acosh(self) -> Self;
fn atanh(self) -> Self;
fn hypot(self, other: Self) -> Self;
}Required Methods§
fn sin(self) -> Self
fn cos(self) -> Self
fn tan(self) -> Self
fn sinh(self) -> Self
fn cosh(self) -> Self
fn tanh(self) -> Self
fn ln(self) -> Self
fn log(self, base: Scalar) -> Self
fn log2(self) -> Self
fn log10(self) -> Self
fn exp(self) -> Self
fn exp2(self) -> Self
fn powf(self, exponent: Scalar) -> Self
fn powi(self, exponent: i32) -> Self
fn sqrt(self) -> Self
fn cbrt(self) -> Self
fn recip(self) -> Self
fn abs(self) -> Self
fn asin(self) -> Self
fn acos(self) -> Self
fn atan(self) -> Self
fn asinh(self) -> Self
fn acosh(self) -> Self
fn atanh(self) -> Self
fn hypot(self, other: 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.