Struct palette::encoding::gamma::GammaFn [−][src]
The transfer function for gamma encoded colors.
The gamma value is stored as a simple type that represents an f32
constant.
Trait Implementations
impl<N: Copy + Number> Copy for GammaFn<N>
[src]
impl<N: Copy + Number> Copy for GammaFn<N>
impl<N: Clone + Number> Clone for GammaFn<N>
[src]
impl<N: Clone + Number> Clone for GammaFn<N>
fn clone(&self) -> GammaFn<N>
[src]
fn clone(&self) -> GammaFn<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<N: Debug + Number> Debug for GammaFn<N>
[src]
impl<N: Debug + Number> Debug for GammaFn<N>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<N: PartialEq + Number> PartialEq for GammaFn<N>
[src]
impl<N: PartialEq + Number> PartialEq for GammaFn<N>
fn eq(&self, other: &GammaFn<N>) -> bool
[src]
fn eq(&self, other: &GammaFn<N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &GammaFn<N>) -> bool
[src]
fn ne(&self, other: &GammaFn<N>) -> bool
This method tests for !=
.
impl<N: Eq + Number> Eq for GammaFn<N>
[src]
impl<N: Eq + Number> Eq for GammaFn<N>
impl<N: Number> TransferFn for GammaFn<N>
[src]
impl<N: Number> TransferFn for GammaFn<N>
fn into_linear<T: Float>(x: T) -> T
[src]
fn into_linear<T: Float>(x: T) -> T
Convert the color component x
into linear space.
fn from_linear<T: Float>(x: T) -> T
[src]
fn from_linear<T: Float>(x: T) -> T
Convert the color component x
from linear space.