Struct primitives::colorspace::alpha::Alpha[][src]

pub struct Alpha<C: ColorSpace> { /* fields omitted */ }

Implementations

impl<C: ColorSpace> Alpha<C>[src]

pub fn new(color: C, alpha: f64) -> Self[src]

Trait Implementations

impl<C: AdjustHue + ColorSpace> AdjustHue for Alpha<C>[src]

impl<C: Clone + ColorSpace> Clone for Alpha<C>[src]

impl<C: Copy + ColorSpace> Copy for Alpha<C>[src]

impl<C: Debug + ColorSpace> Debug for Alpha<C>[src]

impl From<Alpha<RgbColor>> for Color[src]

impl From<Alpha<RgbColor>> for RgbaColor[src]

impl<C: ColorSpace> GetAlpha<C> for Alpha<C>[src]

impl<C: ColorSpace> HasAlpha<C> for Alpha<C>[src]

impl<C: Invert + ColorSpace> Invert for Alpha<C>[src]

impl<C: Lighten + ColorSpace> Lighten for Alpha<C>[src]

impl<C: Round + ColorSpace> Round for Alpha<C>[src]

impl<C: Saturate + ColorSpace> Saturate for Alpha<C>[src]

impl<C: ColorSpace> SetAlpha<C> for Alpha<C>[src]

Auto Trait Implementations

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

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

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

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

impl<C> UnwindSafe for Alpha<C> where
    C: UnwindSafe

Blanket Implementations

impl<C> Adjust for C where
    C: Lighten + AdjustHue + Saturate + Grayscale
[src]

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<C> Grayscale for C where
    C: Saturate
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[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.