[][src]Struct pix::Opaque

pub struct Opaque<C> { /* fields omitted */ }

Alpha Channel for fully opaque pixels and Rasters.

Pixel Formats with Opaque alpha channels take less memory than those with translucent ones.

Trait Implementations

impl<C: Channel> Alpha for Opaque<C>[src]

type Chan = C

Channel type

fn value(&self) -> C[src]

Get the alpha Channel value.

Always returns Channel::MAX (fully opaque).

impl<C: Clone> Clone for Opaque<C>[src]

impl<C: Copy> Copy for Opaque<C>[src]

impl<C: Debug> Debug for Opaque<C>[src]

impl<C: Default> Default for Opaque<C>[src]

impl<C, H> From<H> for Opaque<C> where
    C: Channel + From<H>,
    H: Channel
[src]

impl<C, A> From<Opaque<A>> for Translucent<C> where
    C: Channel,
    A: Channel
[src]

fn from(_: Opaque<A>) -> Self[src]

Convert from an Opaque value.

impl<C: Channel> From<Opaque<C>> for Ch8[src]

impl<C: Channel> From<Opaque<C>> for Ch16[src]

impl<C: Channel> From<Opaque<C>> for Ch32[src]

impl<C, A> From<Translucent<A>> for Opaque<C> where
    C: Channel,
    A: Channel
[src]

fn from(_: Translucent<A>) -> Self[src]

Convert from a Translucent value.

impl<C: Channel> Mul<Opaque<C>> for Opaque<C>[src]

type Output = Self

The resulting type after applying the * operator.

impl<C: PartialEq> PartialEq<Opaque<C>> for Opaque<C>[src]

impl<C> StructuralPartialEq for Opaque<C>[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for Opaque<C> where
    C: RefUnwindSafe

impl<C> Send for Opaque<C> where
    C: Send

impl<C> Sync for Opaque<C> where
    C: Sync

impl<C> Unpin for Opaque<C> where
    C: Unpin

impl<C> UnwindSafe for Opaque<C> where
    C: 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.