Trait cosmic::cosmic_theme::palette::angle::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.

Object Safety§

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