pub trait TrigOps<T>:
Copy
+ Clone
+ Debug {
// Required methods
fn sin(self) -> T;
fn cos(self) -> T;
fn tan(self) -> T;
fn to_radians(self) -> T;
fn to_degrees(self) -> T;
}Expand description
Trigonometric operations
Required Methods§
Sourcefn to_radians(self) -> T
fn to_radians(self) -> T
Convert degrees to radians
Sourcefn to_degrees(self) -> T
fn to_degrees(self) -> T
Convert radians to degrees
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.