[][src]Struct prisma::color_space::named::SRgb

pub struct SRgb<T> { /* fields omitted */ }

The sRgb color space

Implementations

impl<T> SRgb<T>[src]

pub fn new() -> SRgb<T>[src]

Construct a new SRgb instance

Trait Implementations

impl<T: Clone> Clone for SRgb<T>[src]

impl<T> ColorSpace<T> for SRgb<T> where
    T: Float + FreeChannelScalar + PosNormalChannelScalar
[src]

type Encoding = SrgbEncoding

The standard encoding used by this color space

impl<T> ConvertFromXyz<T, Alpha<T, Xyz<T>>> for SRgb<T> where
    T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>, 
[src]

type OutputColor = Rgba<T>

The color type converted to.

impl<T> ConvertFromXyz<T, Xyz<T>> for SRgb<T> where
    T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>, 
[src]

type OutputColor = Rgb<T>

The color type converted to.

impl<T, E> ConvertToXyz<T, Alpha<T, Rgb<T>>, E> for SRgb<T> where
    T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>,
    E: ColorEncoding
[src]

type OutputColor = Xyza<T>

The type to output. Always some form of Xyz

impl<T, E> ConvertToXyz<T, Rgb<T>, E> for SRgb<T> where
    T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>,
    E: ColorEncoding
[src]

type OutputColor = Xyz<T>

The type to output. Always some form of Xyz

impl<T: Copy> Copy for SRgb<T>[src]

impl<T: Debug> Debug for SRgb<T>[src]

impl<T: Default> Default for SRgb<T>[src]

impl<T: Eq> Eq for SRgb<T>[src]

impl<T: PartialEq> PartialEq<SRgb<T>> for SRgb<T>[src]

impl<T> StructuralEq for SRgb<T>[src]

impl<T> StructuralPartialEq for SRgb<T>[src]

impl<T> UnitColorSpace<T> for SRgb<T> where
    T: Float + FreeChannelScalar + PosNormalChannelScalar
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for SRgb<T> where
    T: RefUnwindSafe

impl<T> Send for SRgb<T> where
    T: Send

impl<T> Sync for SRgb<T> where
    T: Sync

impl<T> Unpin for SRgb<T> where
    T: Unpin

impl<T> UnwindSafe for SRgb<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.