pub trait FromAngle<T>where
T: Angle,{
// Required method
fn from_angle(from: T) -> Self;
}
Expand description
Construct Self
from an angle.
Analogous to the traits in the standard library, FromAngle and IntoAngle provide a way to convert between angle types and to mix various angle types in a single operation.
Required Methods§
Sourcefn from_angle(from: T) -> Self
fn from_angle(from: T) -> Self
Construct Self
by converting a T
.
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.