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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Real for f32

source§

impl Real for f64

Implementors§