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: Number> TransferFn for GammaFn<N>
[src]
impl<N: Number> TransferFn for GammaFn<N>
[src]fn into_linear<T: Float + FromF64>(x: T) -> T
[src]
fn from_linear<T: Float + FromF64>(x: T) -> T
[src]
impl<N: Copy + Number> Copy for GammaFn<N>
[src]
impl<N: Eq + Number> Eq for GammaFn<N>
[src]
impl<N: Number> StructuralEq for GammaFn<N>
[src]
impl<N: Number> StructuralPartialEq for GammaFn<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for GammaFn<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for GammaFn<N> where
N: Send,
N: Send,
impl<N> Sync for GammaFn<N> where
N: Sync,
N: Sync,
impl<N> Unpin for GammaFn<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for GammaFn<N> where
N: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
[src]
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
[src]pub fn adapt_into_using<M>(Self, M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T, U> IntoColor<U> for T where
U: FromColor<T>,
[src]
impl<T, U> IntoColor<U> for T where
U: FromColor<T>,
[src]pub fn into_color(Self) -> U
[src]
impl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
[src]
impl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
[src]pub fn into_color_unclamped(Self) -> U
[src]
impl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
[src]
impl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
[src]