[−][src]Struct pix::MaskModel
Mask color model.
The component is alpha only.
Trait Implementations
impl Clone for MaskModel
[src]
impl ColorModel for MaskModel
[src]
fn alpha<P: Pixel>(p: P) -> P::Chan where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Get the alpha component.
fn into_channels<S, D>(src: S) -> Channels<S::Chan> where
S: Pixel<Model = Self>,
D: Pixel,
[src]
S: Pixel<Model = Self>,
D: Pixel,
Convert into channels shared by pixel types
fn into_rgba<P>(p: P) -> [P::Chan; 4] where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert into red, green, blue and alpha components
fn from_channels<S: Pixel, D: Pixel>(channels: Channels<D::Chan>) -> D
[src]
Convert from channels shared by pixel types
fn from_rgba<P: Pixel>(rgba: [P::Chan; 4]) -> P
[src]
Convert from red, green, blue and alpha components
impl Copy for MaskModel
[src]
impl Debug for MaskModel
[src]
impl Default for MaskModel
[src]
impl PartialEq<MaskModel> for MaskModel
[src]
impl StructuralPartialEq for MaskModel
[src]
Auto Trait Implementations
impl RefUnwindSafe for MaskModel
impl Send for MaskModel
impl Sync for MaskModel
impl Unpin for MaskModel
impl UnwindSafe for MaskModel
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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, 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>,