pub trait Math: Sized {
Show 24 methods
// Required methods
fn abs(self) -> Self;
fn recip(self) -> Self;
fn sqrt(self) -> Self;
fn rsqrt(self) -> Self;
fn sin(self) -> Self;
fn cos(self) -> Self;
fn tan(self) -> Self;
fn sincos(self) -> (Self, Self);
fn acos(self) -> Self;
fn asin(self) -> Self;
fn atan(self) -> Self;
fn exp(self) -> Self;
fn exp2(self) -> Self;
fn log(self, rhs: Self) -> Self;
fn log2(self) -> Self;
fn log10(self) -> Self;
fn to_radians(self) -> Self;
fn to_degrees(self) -> Self;
fn min(self, rhs: Self) -> Self;
fn max(self, rhs: Self) -> Self;
fn saturate(self) -> Self;
fn snorm2unorm(self) -> Self;
fn unorm2snorm(self) -> Self;
fn clamp(self, minval: Self, maxval: Self) -> Self;
}Required Methods§
fn abs(self) -> Self
fn recip(self) -> Self
fn sqrt(self) -> Self
fn rsqrt(self) -> Self
fn sin(self) -> Self
fn cos(self) -> Self
fn tan(self) -> Self
fn sincos(self) -> (Self, Self)
fn acos(self) -> Self
fn asin(self) -> Self
fn atan(self) -> Self
fn exp(self) -> Self
fn exp2(self) -> Self
fn log(self, rhs: Self) -> Self
fn log2(self) -> Self
fn log10(self) -> Self
fn to_radians(self) -> Self
fn to_degrees(self) -> Self
fn min(self, rhs: Self) -> Self
fn max(self, rhs: Self) -> Self
fn saturate(self) -> Self
fn snorm2unorm(self) -> Self
fn unorm2snorm(self) -> Self
fn clamp(self, minval: Self, maxval: 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.