pub trait Angle:
Add<Output = Self>
+ Sub<Output = Self>
+ Mul<f64, Output = Self>
+ Sized
+ Copy {
// Required methods
fn to_degrees(&self) -> f64;
fn to_radians(&self) -> f64;
}Expand description
Angle trait for units.
Required Methods§
fn to_degrees(&self) -> f64
fn to_radians(&self) -> f64
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.