#[repr(C)]pub struct Pix3<C, M, A, G> where
C: Channel,
M: ColorModel,
A: Alpha,
G: Gamma, { /* private fields */ }
Expand description
Pixel with three channels in its color model.
Implementations
Trait Implementations
sourceimpl<C: Clone, M: Clone, A: Clone, G: Clone> Clone for Pix3<C, M, A, G> where
C: Channel,
M: ColorModel,
A: Alpha,
G: Gamma,
impl<C: Clone, M: Clone, A: Clone, G: Clone> Clone for Pix3<C, M, A, G> where
C: Channel,
M: ColorModel,
A: Alpha,
G: Gamma,
sourceimpl<C: Debug, M: Debug, A: Debug, G: Debug> Debug for Pix3<C, M, A, G> where
C: Channel,
M: ColorModel,
A: Alpha,
G: Gamma,
impl<C: Debug, M: Debug, A: Debug, G: Debug> Debug for Pix3<C, M, A, G> where
C: Channel,
M: ColorModel,
A: Alpha,
G: Gamma,
sourceimpl<C: Default, M: Default, A: Default, G: Default> Default for Pix3<C, M, A, G> where
C: Channel,
M: ColorModel,
A: Alpha,
G: Gamma,
impl<C: Default, M: Default, A: Default, G: Default> Default for Pix3<C, M, A, G> where
C: Channel,
M: ColorModel,
A: Alpha,
G: Gamma,
sourceimpl<C: PartialEq, M: PartialEq, A: PartialEq, G: PartialEq> PartialEq<Pix3<C, M, A, G>> for Pix3<C, M, A, G> where
C: Channel,
M: ColorModel,
A: Alpha,
G: Gamma,
impl<C: PartialEq, M: PartialEq, A: PartialEq, G: PartialEq> PartialEq<Pix3<C, M, A, G>> for Pix3<C, M, A, G> where
C: Channel,
M: ColorModel,
A: Alpha,
G: Gamma,
sourceimpl<C, M, A, G> Pixel for Pix3<C, M, A, G> where
C: Channel,
M: ColorModel,
A: Alpha,
G: Gamma,
impl<C, M, A, G> Pixel for Pix3<C, M, A, G> where
C: Channel,
M: ColorModel,
A: Alpha,
G: Gamma,
type Chan = C
type Chan = C
Channel type
type Model = M
type Model = M
Color model
type Alpha = A
type Alpha = A
Alpha mode
type Gamma = G
type Gamma = G
Gamma mode
sourcefn from_channels(ch: &[C]) -> Self
fn from_channels(ch: &[C]) -> Self
Make a pixel from a slice of channels.
sourcefn from_bit_depth<P>(p: P) -> Self where
P: Pixel,
Self::Chan: From<P::Chan>,
fn from_bit_depth<P>(p: P) -> Self where
P: Pixel,
Self::Chan: From<P::Chan>,
Convert from a pixel with a different bit depth.
sourcefn channels_mut(&mut self) -> &mut [Self::Chan]
fn channels_mut(&mut self) -> &mut [Self::Chan]
Get the channels mutably.
sourcefn alpha_mut(&mut self) -> &mut Self::Chan
fn alpha_mut(&mut self) -> &mut Self::Chan
Get a mutable reference to the alpha channel. Read more
sourcefn convert<D>(self) -> D where
D: Pixel,
D::Chan: From<Self::Chan>,
fn convert<D>(self) -> D where
D: Pixel,
D::Chan: From<Self::Chan>,
Convert a pixel to another format Read more
sourcefn copy_color(dst: &mut [Self], clr: &Self)
fn copy_color(dst: &mut [Self], clr: &Self)
Copy a color to a pixel slice
sourcefn copy_slice(dst: &mut [Self], src: &[Self])
fn copy_slice(dst: &mut [Self], src: &[Self])
Copy a slice to another
sourcefn composite_color<O>(dst: &mut [Self], clr: &Self, op: O) where
Self: Pixel<Alpha = Premultiplied, Gamma = Linear>,
O: Blend,
fn composite_color<O>(dst: &mut [Self], clr: &Self, op: O) where
Self: Pixel<Alpha = Premultiplied, Gamma = Linear>,
O: Blend,
Composite a color with a pixel slice
sourcefn composite_matte<M, O>(dst: &mut [Self], src: &[M], clr: &Self, op: O) where
Self: Pixel<Alpha = Premultiplied, Gamma = Linear>,
M: Pixel<Chan = Self::Chan, Model = Matte, Gamma = Linear>,
O: Blend,
fn composite_matte<M, O>(dst: &mut [Self], src: &[M], clr: &Self, op: O) where
Self: Pixel<Alpha = Premultiplied, Gamma = Linear>,
M: Pixel<Chan = Self::Chan, Model = Matte, Gamma = Linear>,
O: Blend,
Composite matte with color to destination pixel slice
sourcefn composite_slice<O>(dst: &mut [Self], src: &[Self], op: O) where
Self: Pixel<Alpha = Premultiplied, Gamma = Linear>,
O: Blend,
fn composite_slice<O>(dst: &mut [Self], src: &[Self], op: O) where
Self: Pixel<Alpha = Premultiplied, Gamma = Linear>,
O: Blend,
Composite two slices of pixels
sourcefn composite_channels<O>(&mut self, src: &Self, op: O) where
Self: Pixel<Alpha = Premultiplied, Gamma = Linear>,
O: Blend,
fn composite_channels<O>(&mut self, src: &Self, op: O) where
Self: Pixel<Alpha = Premultiplied, Gamma = Linear>,
O: Blend,
Composite the channels of two pixels
sourcefn composite_channels_alpha<O>(&mut self, src: &Self, op: O, alpha: &Self::Chan) where
Self: Pixel<Alpha = Premultiplied, Gamma = Linear>,
O: Blend,
fn composite_channels_alpha<O>(&mut self, src: &Self, op: O, alpha: &Self::Chan) where
Self: Pixel<Alpha = Premultiplied, Gamma = Linear>,
O: Blend,
Composite the channels of two pixels with alpha
impl<C: Copy, M: Copy, A: Copy, G: Copy> Copy for Pix3<C, M, A, G> where
C: Channel,
M: ColorModel,
A: Alpha,
G: Gamma,
impl<C, M, A, G> StructuralPartialEq for Pix3<C, M, A, G> where
C: Channel,
M: ColorModel,
A: Alpha,
G: Gamma,
Auto Trait Implementations
impl<C, M, A, G> RefUnwindSafe for Pix3<C, M, A, G> where
A: RefUnwindSafe,
C: RefUnwindSafe,
G: RefUnwindSafe,
M: RefUnwindSafe,
impl<C, M, A, G> Send for Pix3<C, M, A, G> where
A: Send,
C: Send,
G: Send,
M: Send,
impl<C, M, A, G> Sync for Pix3<C, M, A, G> where
A: Sync,
C: Sync,
G: Sync,
M: Sync,
impl<C, M, A, G> Unpin for Pix3<C, M, A, G> where
A: Unpin,
C: Unpin,
G: Unpin,
M: Unpin,
impl<C, M, A, G> UnwindSafe for Pix3<C, M, A, G> where
A: UnwindSafe,
C: UnwindSafe,
G: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more