Skip to main content

Number

Trait Number 

Source
pub trait Number: 'static {
    const VALUE: f64;
}
👎Deprecated since 0.7.7:

Gamma, GammaFn and F2p2 are error prone and incorrectly implemented. See palette::encoding for possible alternatives or implement palette::encoding::FromLinear and palette::encoding::IntoLinear for a custom type.

Expand description

A type level float constant.

Required Associated Constants§

Source

const VALUE: f64

👎Deprecated since 0.7.7:

Gamma, GammaFn and F2p2 are error prone and incorrectly implemented. See palette::encoding for possible alternatives or implement palette::encoding::FromLinear and palette::encoding::IntoLinear for a custom type.

The represented number.

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.

Implementors§