Struct color::AlphaColor[][src]

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

Fields

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

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

Formats the value using the given formatter. Read more

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

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

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

Inverts the color.

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

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

Saturating addition operator. Returns a+b, saturating at the numeric bounds instead of overflowing. Read more

Saturating subtraction operator. Returns a-b, saturating at the numeric bounds instead of overflowing. Read more

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

The returned type after indexing.

Important traits for &'a mut R

Performs the indexing (container[index]) operation.

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

Important traits for &'a mut R

Performs the mutable indexing (container[index]) operation.

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

Performs the conversion.

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

Performs the conversion.

Auto Trait Implementations

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

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