pub trait Trig: Sized {
// Required methods
fn sin(self) -> Self;
fn sin_cos(self) -> (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, other: Self) -> Self;
}
Expand description
Trigonometric functions
Required Methods§
fn sin(self) -> Self
fn sin_cos(self) -> (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, 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.