Trait palette::num::Real

source ·
pub trait Real {
    // Required method
    fn from_f64(n: f64) -> Self;
}
Expand description

Numbers that belong to the real number set. It’s both a semantic marker and provides a constructor for number constants.

Required Methods§

source

fn from_f64(n: f64) -> Self

Create a number from an f64 value, mainly for converting constants.

Implementations on Foreign Types§

source§

impl Real for f64x4

source§

impl Real for f64x2

source§

impl Real for f64

source§

impl Real for f32

source§

impl Real for f32x8

source§

impl Real for f32x4

Implementors§