Struct palette::encoding::srgb::Srgb [−][src]
pub struct Srgb;
The sRGB color space.
Trait Implementations
impl Copy for Srgb
[src]
impl Copy for Srgb
impl Clone for Srgb
[src]
impl Clone for Srgb
fn clone(&self) -> Srgb
[src]
fn clone(&self) -> Srgb
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 Srgb
[src]
impl Debug for Srgb
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 Srgb
[src]
impl PartialEq for Srgb
fn eq(&self, other: &Srgb) -> bool
[src]
fn eq(&self, other: &Srgb) -> 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 Srgb
[src]
impl Eq for Srgb
impl Primaries for Srgb
[src]
impl Primaries for Srgb
fn red<Wp: WhitePoint, T: Component + Float>() -> Yxy<Wp, T>
[src]
fn red<Wp: WhitePoint, T: Component + Float>() -> Yxy<Wp, T>
Primary red.
fn green<Wp: WhitePoint, T: Component + Float>() -> Yxy<Wp, T>
[src]
fn green<Wp: WhitePoint, T: Component + Float>() -> Yxy<Wp, T>
Primary green.
fn blue<Wp: WhitePoint, T: Component + Float>() -> Yxy<Wp, T>
[src]
fn blue<Wp: WhitePoint, T: Component + Float>() -> Yxy<Wp, T>
Primary blue.
impl RgbSpace for Srgb
[src]
impl RgbSpace for Srgb
type Primaries = Srgb
The primaries of the RGB color space.
type WhitePoint = D65
The white point of the RGB color space.
impl RgbStandard for Srgb
[src]
impl RgbStandard for Srgb
type Space = Srgb
The RGB color space.
type TransferFn = Srgb
The transfer function for the color components.
impl LumaStandard for Srgb
[src]
impl LumaStandard for Srgb
type WhitePoint = D65
The white point of the color space.
type TransferFn = Srgb
The transfer function for the luminance component.
impl TransferFn for Srgb
[src]
impl TransferFn for Srgb
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.