Struct palette::encoding::gamma::GammaFn[][src]

pub struct GammaFn<N: Number = F2p2>(_);

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: Clone + Number> Clone for GammaFn<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Debug + Number> Debug for GammaFn<N>
[src]

Formats the value using the given formatter. Read more

impl<N: PartialEq + Number> PartialEq for GammaFn<N>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<N: Eq + Number> Eq for GammaFn<N>
[src]

impl<N: Number> TransferFn for GammaFn<N>
[src]

Convert the color component x into linear space.

Convert the color component x from linear space.

Auto Trait Implementations

impl<N> Send for GammaFn<N> where
    N: Send

impl<N> Sync for GammaFn<N> where
    N: Sync