Struct palette::encoding::linear::LinearFn [−][src]
pub struct LinearFn;
Linear color component encoding.
Trait Implementations
impl Copy for LinearFn
[src]
impl Copy for LinearFn
impl Clone for LinearFn
[src]
impl Clone for LinearFn
fn clone(&self) -> LinearFn
[src]
fn clone(&self) -> LinearFn
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 Debug for LinearFn
[src]
impl Debug for LinearFn
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 PartialEq for LinearFn
[src]
impl PartialEq for LinearFn
fn eq(&self, other: &LinearFn) -> bool
[src]
fn eq(&self, other: &LinearFn) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for LinearFn
[src]
impl Eq for LinearFn
impl TransferFn for LinearFn
[src]
impl TransferFn for LinearFn
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.