Skip to main content

FromAngle

Trait FromAngle 

Source
pub trait FromAngle<T> {
    // Required method
    fn from_angle(angle: T) -> Self;
}
Expand description

Performs value-to-value conversion between angle types. See also IntoAngle.

Required Methods§

Source

fn from_angle(angle: T) -> Self

Performs a conversion from angle.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FromAngle<f32> for f64

Source§

fn from_angle(angle: f32) -> Self

Source§

impl FromAngle<f32> for u8

Source§

fn from_angle(angle: f32) -> Self

Source§

impl FromAngle<f64> for f32

Source§

fn from_angle(angle: f64) -> Self

Source§

impl FromAngle<f64> for u8

Source§

fn from_angle(angle: f64) -> Self

Source§

impl FromAngle<u8> for f32

Source§

fn from_angle(angle: u8) -> Self

Source§

impl FromAngle<u8> for f64

Source§

fn from_angle(angle: u8) -> Self

Implementors§

Source§

impl<T> FromAngle<T> for T