[−][src]Struct palette::encoding::srgb::Srgb
The sRGB color space.
Trait Implementations
impl LumaStandard for Srgb
[src]
type WhitePoint = D65
The white point of the color space.
type TransferFn = Srgb
The transfer function for the luminance component.
impl RgbStandard for Srgb
[src]
type Space = Srgb
The RGB color space.
type TransferFn = Srgb
The transfer function for the color components.
impl RgbSpace for Srgb
[src]
type Primaries = Srgb
The primaries of the RGB color space.
type WhitePoint = D65
The white point of the RGB color space.
impl Primaries for Srgb
[src]
fn red<Wp: WhitePoint, T: Component + Float>() -> Yxy<Wp, T>
[src]
fn green<Wp: WhitePoint, T: Component + Float>() -> Yxy<Wp, T>
[src]
fn blue<Wp: WhitePoint, T: Component + Float>() -> Yxy<Wp, T>
[src]
impl TransferFn for Srgb
[src]
fn into_linear<T: Float>(x: T) -> T
[src]
fn from_linear<T: Float>(x: T) -> T
[src]
impl Copy for Srgb
[src]
impl Eq for Srgb
[src]
impl Clone for Srgb
[src]
fn clone(&self) -> Srgb
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Srgb> for Srgb
[src]
fn eq(&self, other: &Srgb) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Debug for Srgb
[src]
Auto Trait Implementations
impl Unpin for Srgb
impl Sync for Srgb
impl Send for Srgb
impl UnwindSafe for Srgb
impl RefUnwindSafe for Srgb
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
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]
Convert the source color to the destination color using the bradford method by default Read more
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,