cosmic::cosmic_theme::palette::angle

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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromAngle<f32> for f64

Source§

fn from_angle(angle: f32) -> f64

Source§

impl FromAngle<f32> for u8

Source§

fn from_angle(angle: f32) -> u8

Source§

impl FromAngle<f64> for f32

Source§

fn from_angle(angle: f64) -> f32

Source§

impl FromAngle<f64> for u8

Source§

fn from_angle(angle: f64) -> u8

Source§

impl FromAngle<u8> for f32

Source§

fn from_angle(angle: u8) -> f32

Source§

impl FromAngle<u8> for f64

Source§

fn from_angle(angle: u8) -> f64

Implementors§

Source§

impl<T> FromAngle<T> for T