[][src]Struct color::AlphaColor

pub struct AlphaColor<T, C> {
    pub c: C,
    pub a: T,
}

Fields

c: Ca: T

Trait Implementations

impl<T, C: ToRgb> ToRgb for AlphaColor<T, C>[src]

impl<T: Channel, C: ToRgb> ToRgba for AlphaColor<T, C>[src]

impl<T: Channel, C: Color<T>> Color<T> for AlphaColor<T, C>[src]

fn clamp_s(self, lo: T, hi: T) -> AlphaColor<T, C>[src]

Clamps the components of the color to the range (lo,hi).

fn clamp_c(self, lo: AlphaColor<T, C>, hi: AlphaColor<T, C>) -> AlphaColor<T, C>[src]

Clamps the components of the color component-wise between lo and hi.

fn inverse(self) -> AlphaColor<T, C>[src]

Inverts the color.

impl<T: Clone, C: Clone> Clone for AlphaColor<T, C>[src]

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

Performs copy-assignment from source. Read more

impl<T, C: AsMut<[T; 3]>> AsMut<[T; 4]> for AlphaColor<T, C>[src]

impl<T, C: AsRef<[T; 3]>> AsRef<[T; 4]> for AlphaColor<T, C>[src]

impl<T: PartialEq, C: PartialEq> PartialEq<AlphaColor<T, C>> for AlphaColor<T, C>[src]

impl<T: Copy, C: Copy> Copy for AlphaColor<T, C>[src]

impl<T: Eq, C: Eq> Eq for AlphaColor<T, C>[src]

impl<T: Debug, C: Debug> Debug for AlphaColor<T, C>[src]

impl<T: Channel + Sub<T, Output = T>, C: Sub<Output = C>> Sub<AlphaColor<T, C>> for AlphaColor<T, C>[src]

type Output = AlphaColor<T, C>

The resulting type after applying the - operator.

impl<T: Channel, C: Div<Output = C>> Div<AlphaColor<T, C>> for AlphaColor<T, C>[src]

type Output = AlphaColor<T, C>

The resulting type after applying the / operator.

impl<T: Channel + Div<T, Output = T>, C: Div<T, Output = C>> Div<T> for AlphaColor<T, C>[src]

type Output = AlphaColor<T, C>

The resulting type after applying the / operator.

impl<T: Channel + Add<T, Output = T>, C: Add<Output = C>> Add<AlphaColor<T, C>> for AlphaColor<T, C>[src]

type Output = AlphaColor<T, C>

The resulting type after applying the + operator.

impl<T: Channel, C: Mul<Output = C>> Mul<AlphaColor<T, C>> for AlphaColor<T, C>[src]

type Output = AlphaColor<T, C>

The resulting type after applying the * operator.

impl<T: Channel + Mul<T, Output = T>, C: Mul<T, Output = C>> Mul<T> for AlphaColor<T, C>[src]

type Output = AlphaColor<T, C>

The resulting type after applying the * operator.

impl<T, C: AsRef<[T; 3]>> Index<usize> for AlphaColor<T, C>[src]

type Output = T

The returned type after indexing.

impl<T, C: AsRef<[T; 3]> + AsMut<[T; 3]>> IndexMut<usize> for AlphaColor<T, C>[src]

impl<T: Channel + Saturating, C: Saturating> Saturating for AlphaColor<T, C>[src]

impl<T, C> Serialize for AlphaColor<T, C> where
    T: Serialize,
    C: Serialize
[src]

impl<'de, T, C> Deserialize<'de> for AlphaColor<T, C> where
    T: Deserialize<'de>,
    C: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<T, C> Unpin for AlphaColor<T, C> where
    C: Unpin,
    T: Unpin

impl<T, C> Sync for AlphaColor<T, C> where
    C: Sync,
    T: Sync

impl<T, C> Send for AlphaColor<T, C> where
    C: Send,
    T: Send

impl<T, C> UnwindSafe for AlphaColor<T, C> where
    C: UnwindSafe,
    T: UnwindSafe

impl<T, C> RefUnwindSafe for AlphaColor<T, C> where
    C: RefUnwindSafe,
    T: RefUnwindSafe

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]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]