pub trait Trig<S>: Sized {
// Required methods
fn sin(self) -> S;
fn sin_cos(self) -> (S, S);
fn cos(self) -> S;
fn tan(self) -> S;
fn asin(self) -> S;
fn acos(self) -> S;
fn atan(self) -> S;
fn atan2(self, other: Self) -> S;
}Expand description
Trigonometric functions
Required Methods§
fn sin(self) -> S
fn sin_cos(self) -> (S, S)
fn cos(self) -> S
fn tan(self) -> S
fn asin(self) -> S
fn acos(self) -> S
fn atan(self) -> S
fn atan2(self, other: Self) -> S
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".