Trait 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) -> 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