[][src]Struct pix::Translucent

pub struct Translucent<C: Channel> { /* fields omitted */ }

Alpha channel for translucent or transparent pixels and Rasters.

Methods

impl<C: Channel> Translucent<C>[src]

pub fn new(value: C) -> Self[src]

Create a new Translucent alpha value.

Trait Implementations

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

type Chan = C

Channel type

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

Get the alpha Channel value.

Channel::MIN is fully transparent, and Channel::MAX is fully opaque.

impl<C: PartialEq + Channel> PartialEq<Translucent<C>> for Translucent<C>[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, H> From<H> for Translucent<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: Clone + Channel> Clone for Translucent<C>[src]

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

Performs copy-assignment from source. Read more

impl<C: Default + Channel> Default for Translucent<C>[src]

impl<C: Copy + Channel> Copy for Translucent<C>[src]

impl<C: Debug + Channel> Debug for Translucent<C>[src]

Auto Trait Implementations

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

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

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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]