[][src]Struct rendy_texture::pixel::Pixel

#[repr(transparent)]
pub struct Pixel<C, S, T> where
    C: PixelRepr<S, T>, 
{ pub repr: <C as PixelRepr<S, T>>::Repr, }

One pixel By default deriving X adds T: X bound for all type parameters for the type. We use derivative here to override that.

Fields

repr: <C as PixelRepr<S, T>>::Repr

Pixel representation.

Trait Implementations

impl<C, S, T> Copy for Pixel<C, S, T> where
    C: PixelRepr<S, T>, 
[src]

impl<C, S, T> Default for Pixel<C, S, T> where
    C: PixelRepr<S, T>, 
[src]

impl<C, S, T> Clone for Pixel<C, S, T> where
    C: PixelRepr<S, T>, 
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<S, T, B> From<Rgb<S, T>> for Pixel<Rgb, B, Srgb> where
    S: RgbStandard<Space = Srgb>,
    T: Component,
    B: ChannelSize,
    Srgb: ChannelRepr<B>,
    <Srgb as ChannelRepr<B>>::Repr: Component
[src]

impl<S, T, B> From<Alpha<Rgb<S, T>, T>> for Pixel<Rgba, B, Srgb> where
    S: RgbStandard<Space = Srgb>,
    T: Component,
    B: ChannelSize,
    Srgb: ChannelRepr<B>,
    <Srgb as ChannelRepr<B>>::Repr: Component
[src]

impl<S, T, B> From<Luma<S, T>> for Pixel<R, B, Srgb> where
    S: LumaStandard<WhitePoint = D65>,
    T: Component,
    B: ChannelSize,
    Srgb: ChannelRepr<B>,
    <Srgb as ChannelRepr<B>>::Repr: Component
[src]

impl<S, T, B> From<Alpha<Luma<S, T>, T>> for Pixel<Rg, B, Srgb> where
    S: LumaStandard<WhitePoint = D65>,
    T: Component,
    B: ChannelSize,
    Srgb: ChannelRepr<B>,
    <Srgb as ChannelRepr<B>>::Repr: Component
[src]

impl<S, T, B> From<Rgb<S, T>> for Pixel<Rgb, B, Unorm> where
    S: RgbStandard<Space = Srgb>,
    T: Component,
    B: ChannelSize,
    Unorm: ChannelRepr<B>,
    <Unorm as ChannelRepr<B>>::Repr: Component
[src]

impl<S, T, B> From<Rgb<S, T>> for Pixel<Rgb, B, Float> where
    S: RgbStandard<Space = Srgb>,
    T: Component,
    B: ChannelSize,
    Float: ChannelRepr<B>,
    <Float as ChannelRepr<B>>::Repr: Component
[src]

impl<S, T, B> From<Alpha<Rgb<S, T>, T>> for Pixel<Rgba, B, Unorm> where
    S: RgbStandard<Space = Srgb>,
    T: Component,
    B: ChannelSize,
    Unorm: ChannelRepr<B>,
    <Unorm as ChannelRepr<B>>::Repr: Component
[src]

impl<S, T, B> From<Alpha<Rgb<S, T>, T>> for Pixel<Rgba, B, Float> where
    S: RgbStandard<Space = Srgb>,
    T: Component,
    B: ChannelSize,
    Float: ChannelRepr<B>,
    <Float as ChannelRepr<B>>::Repr: Component
[src]

impl<S, T, B> From<Luma<S, T>> for Pixel<R, B, Unorm> where
    S: LumaStandard<WhitePoint = D65>,
    T: Component,
    B: ChannelSize,
    Unorm: ChannelRepr<B>,
    <Unorm as ChannelRepr<B>>::Repr: Component
[src]

impl<S, T, B> From<Luma<S, T>> for Pixel<R, B, Float> where
    S: LumaStandard<WhitePoint = D65>,
    T: Component,
    B: ChannelSize,
    Float: ChannelRepr<B>,
    <Float as ChannelRepr<B>>::Repr: Component
[src]

impl<S, T, B> From<Alpha<Luma<S, T>, T>> for Pixel<Rg, B, Unorm> where
    S: LumaStandard<WhitePoint = D65>,
    T: Component,
    B: ChannelSize,
    Unorm: ChannelRepr<B>,
    <Unorm as ChannelRepr<B>>::Repr: Component
[src]

impl<S, T, B> From<Alpha<Luma<S, T>, T>> for Pixel<Rg, B, Float> where
    S: LumaStandard<WhitePoint = D65>,
    T: Component,
    B: ChannelSize,
    Float: ChannelRepr<B>,
    <Float as ChannelRepr<B>>::Repr: Component
[src]

impl<C, S, T> Debug for Pixel<C, S, T> where
    C: PixelRepr<S, T>, 
[src]

Auto Trait Implementations

impl<C, S, T> Unpin for Pixel<C, S, T> where
    <C as PixelRepr<S, T>>::Repr: Unpin

impl<C, S, T> Sync for Pixel<C, S, T> where
    <C as PixelRepr<S, T>>::Repr: Sync

impl<C, S, T> Send for Pixel<C, S, T> where
    <C as PixelRepr<S, T>>::Repr: Send

impl<C, S, T> UnwindSafe for Pixel<C, S, T> where
    <C as PixelRepr<S, T>>::Repr: UnwindSafe

impl<C, S, T> RefUnwindSafe for Pixel<C, S, T> where
    <C as PixelRepr<S, T>>::Repr: RefUnwindSafe

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

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

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Erased for T[src]

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]

fn adapt_into(self) -> D[src]

Convert the source color to the destination color using the bradford method by default Read more