#[repr(C)]pub struct Pix4<C, M, A, G>where
C: Channel,
M: ColorModel,
A: Alpha,
G: Gamma,{ /* private fields */ }
Expand description
Pixel with four channels in its color model.
Implementations§
Trait Implementations§
source§impl<C, M, A, G> Clone for Pix4<C, M, A, G>where
C: Channel + Clone,
M: ColorModel + Clone,
A: Alpha + Clone,
G: Gamma + Clone,
impl<C, M, A, G> Clone for Pix4<C, M, A, G>where C: Channel + Clone, M: ColorModel + Clone, A: Alpha + Clone, G: Gamma + Clone,
source§impl<C, M, A, G> Debug for Pix4<C, M, A, G>where
C: Channel + Debug,
M: ColorModel + Debug,
A: Alpha + Debug,
G: Gamma + Debug,
impl<C, M, A, G> Debug for Pix4<C, M, A, G>where C: Channel + Debug, M: ColorModel + Debug, A: Alpha + Debug, G: Gamma + Debug,
source§impl<C, M, A, G> Default for Pix4<C, M, A, G>where
C: Channel + Default,
M: ColorModel + Default,
A: Alpha + Default,
G: Gamma + Default,
impl<C, M, A, G> Default for Pix4<C, M, A, G>where C: Channel + Default, M: ColorModel + Default, A: Alpha + Default, G: Gamma + Default,
source§impl<C, M, A, G> PartialEq<Pix4<C, M, A, G>> for Pix4<C, M, A, G>where
C: Channel + PartialEq,
M: ColorModel + PartialEq,
A: Alpha + PartialEq,
G: Gamma + PartialEq,
impl<C, M, A, G> PartialEq<Pix4<C, M, A, G>> for Pix4<C, M, A, G>where C: Channel + PartialEq, M: ColorModel + PartialEq, A: Alpha + PartialEq, G: Gamma + PartialEq,
source§impl<C, M, A, G> Pixel for Pix4<C, M, A, G>where
C: Channel,
M: ColorModel,
A: Alpha,
G: Gamma,
impl<C, M, A, G> Pixel for Pix4<C, M, A, G>where C: Channel, M: ColorModel, A: Alpha, G: Gamma,
source§fn from_channels(ch: &[C]) -> Self
fn from_channels(ch: &[C]) -> Self
Make a pixel from a slice of channels.
source§fn from_bit_depth<P>(p: P) -> Selfwhere
P: Pixel,
Self::Chan: From<P::Chan>,
fn from_bit_depth<P>(p: P) -> Selfwhere P: Pixel, Self::Chan: From<P::Chan>,
Convert from a pixel with a different bit depth.
source§fn channels_mut(&mut self) -> &mut [Self::Chan]
fn channels_mut(&mut self) -> &mut [Self::Chan]
Get the channels mutably.
source§fn 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
source§fn convert<D>(self) -> Dwhere
D: Pixel,
D::Chan: From<Self::Chan>,
fn convert<D>(self) -> Dwhere D: Pixel, D::Chan: From<Self::Chan>,
Convert a pixel to another format Read more
source§fn copy_color(dst: &mut [Self], clr: &Self)
fn copy_color(dst: &mut [Self], clr: &Self)
Copy a color to a pixel slice
source§fn copy_slice(dst: &mut [Self], src: &[Self])
fn copy_slice(dst: &mut [Self], src: &[Self])
Copy a slice to another
impl<C, M, A, G> Copy for Pix4<C, M, A, G>where C: Channel + Copy, M: ColorModel + Copy, A: Alpha + Copy, G: Gamma + Copy,
impl<C, M, A, G> Eq for Pix4<C, M, A, G>where C: Channel + Eq, M: ColorModel + Eq, A: Alpha + Eq, G: Gamma + Eq,
impl<C, M, A, G> StructuralEq for Pix4<C, M, A, G>where C: Channel, M: ColorModel, A: Alpha, G: Gamma,
impl<C, M, A, G> StructuralPartialEq for Pix4<C, M, A, G>where C: Channel, M: ColorModel, A: Alpha, G: Gamma,
Auto Trait Implementations§
impl<C, M, A, G> RefUnwindSafe for Pix4<C, M, A, G>where A: RefUnwindSafe, C: RefUnwindSafe, G: RefUnwindSafe, M: RefUnwindSafe,
impl<C, M, A, G> Send for Pix4<C, M, A, G>where A: Send, C: Send, G: Send, M: Send,
impl<C, M, A, G> Sync for Pix4<C, M, A, G>where A: Sync, C: Sync, G: Sync, M: Sync,
impl<C, M, A, G> Unpin for Pix4<C, M, A, G>where A: Unpin, C: Unpin, G: Unpin, M: Unpin,
impl<C, M, A, G> UnwindSafe for Pix4<C, M, A, G>where A: UnwindSafe, C: UnwindSafe, G: UnwindSafe, M: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more