Struct rin::color::AlphaColor[][src]

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

Fields

c: Ca: T

Implementations

impl<T, C> AlphaColor<T, C>[src]

pub const fn new(c: C, a: T) -> AlphaColor<T, C>[src]

impl<T, S> AlphaColor<T, Rgb<T, S>> where
    T: Channel,
    S: TransferFunction
[src]

pub fn from_hex(hex: u32) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn rg(&self) -> Rg<T, S>[src]

pub fn rb(&self) -> Rg<T, S>[src]

pub fn gr(&self) -> Rg<T, S>[src]

pub fn gb(&self) -> Rg<T, S>[src]

pub fn br(&self) -> Rg<T, S>[src]

pub fn bg(&self) -> Rg<T, S>[src]

pub fn ar(&self) -> Rg<T, S>[src]

pub fn ag(&self) -> Rg<T, S>[src]

pub fn ab(&self) -> Rg<T, S>[src]

pub fn ra(&self) -> Rg<T, S>[src]

pub fn ga(&self) -> Rg<T, S>[src]

pub fn ba(&self) -> Rg<T, S>[src]

pub fn rgb(&self) -> Rgb<T, S>[src]

pub fn rbg(&self) -> Rgb<T, S>[src]

pub fn bgr(&self) -> Rgb<T, S>[src]

pub fn brg(&self) -> Rgb<T, S>[src]

pub fn grb(&self) -> Rgb<T, S>[src]

pub fn gbr(&self) -> Rgb<T, S>[src]

pub fn rga(&self) -> Rgb<T, S>[src]

pub fn rba(&self) -> Rgb<T, S>[src]

pub fn bra(&self) -> Rgb<T, S>[src]

pub fn bga(&self) -> Rgb<T, S>[src]

pub fn gra(&self) -> Rgb<T, S>[src]

pub fn gba(&self) -> Rgb<T, S>[src]

pub fn arg(&self) -> Rgb<T, S>[src]

pub fn arb(&self) -> Rgb<T, S>[src]

pub fn agr(&self) -> Rgb<T, S>[src]

pub fn agb(&self) -> Rgb<T, S>[src]

pub fn abr(&self) -> Rgb<T, S>[src]

pub fn abg(&self) -> Rgb<T, S>[src]

pub fn rag(&self) -> Rgb<T, S>[src]

pub fn rab(&self) -> Rgb<T, S>[src]

pub fn gar(&self) -> Rgb<T, S>[src]

pub fn gab(&self) -> Rgb<T, S>[src]

pub fn bar(&self) -> Rgb<T, S>[src]

pub fn bag(&self) -> Rgb<T, S>[src]

pub fn rgba(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn rbga(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn grba(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn gbra(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn brga(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn bgra(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn argb(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn arbg(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn agrb(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn agbr(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn abrg(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn abgr(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn ragb(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn rabg(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn garb(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn gabr(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn barg(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn bagr(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn rgab(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn rbag(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn grab(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn gbar(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn brag(&self) -> AlphaColor<T, Rgb<T, S>>[src]

pub fn bgar(&self) -> AlphaColor<T, Rgb<T, S>>[src]

impl<T, S> AlphaColor<T, Rgb<T, S>> where
    T: Channel,
    S: TransferFunction
[src]

pub fn to_standard<S2>(&self) -> AlphaColor<T, Rgb<T, S2>> where
    S2: TransferFunction
[src]

pub fn to_linear(&self) -> AlphaColor<T, Rgb<T, LinearRgb>>[src]

Trait Implementations

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

type Output = AlphaColor<T, C>

The resulting type after applying the + operator.

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

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

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

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

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

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

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

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

pub 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.

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

Inverts the color.

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

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

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

type Output = AlphaColor<T, C>

The resulting type after applying the / operator.

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

type Output = AlphaColor<T, C>

The resulting type after applying the / operator.

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

type Output = T

The returned type after indexing.

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

impl IntoUniformValueRef for AlphaColor<f32, Rgb<f32, LinearRgb>>[src]

impl IntoUniformValueRef for AlphaColor<f32, Rgb<f32, Srgb>>[src]

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

type Output = AlphaColor<T, C>

The resulting type after applying the * operator.

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

type Output = AlphaColor<T, C>

The resulting type after applying the * operator.

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

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

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

impl<T, S> Std140 for AlphaColor<T, Rgb<T, S>> where
    T: Std140,
    S: 'static, 
[src]

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

type Output = AlphaColor<T, C>

The resulting type after applying the - operator.

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

type Standard = <C as ToLuma>::Standard

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

type Standard = <C as ToRgb>::Standard

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

type Standard = <C as ToRgb>::Standard

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

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

impl<T, C> StructuralEq for AlphaColor<T, C>[src]

impl<T, C> StructuralPartialEq for AlphaColor<T, C>[src]

Auto Trait Implementations

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

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

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

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> AsUniform<dyn AsRef<[[f32; 4]; 4]> + 'static> for T where
    T: AsRef<[[f32; 4]; 4]>, 
[src]

impl<T> AsUniform<dyn AsRef<[f32; 4]> + 'static> for T where
    T: AsRef<[f32; 4]>, 
[src]

impl<T> AsUniform<dyn AsRef<[i32; 4]> + 'static> for T where
    T: AsRef<[i32; 4]>, 
[src]

impl<T> AsUniform<dyn AsRef<[u32; 4]> + 'static> for T where
    T: AsRef<[u32; 4]>, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Color<dyn AsRef<[f32; 4]> + 'static> for T where
    T: AsRef<[f32; 4]> + ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> IntoPnt<Point<T, U2>> for T where
    T: Scalar
[src]

impl<T> IntoPnt<Point<T, U3>> for T where
    T: Scalar
[src]

impl<T> IntoPnt<Point<T, U4>> for T where
    T: Scalar
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> JoinPnt<T, Point<T, U2>> for T where
    T: Scalar
[src]

type Output = Point<T, U3>

impl<T> JoinPnt<T, Point<T, U3>> for T where
    T: Scalar
[src]

type Output = Point<T, U4>

impl<T> JoinPnt<T, T> for T where
    T: Scalar
[src]

type Output = Point<T, U2>

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Debug + Any
[src]

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WriteStd140 for T where
    T: Std140
[src]

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

impl<T> Slottable for T where
    T: Copy
[src]