Struct rin::color::AlphaColor [−][src]
pub struct AlphaColor<T, C> { pub c: C, pub a: T, }
Fields
c: C
a: T
Implementations
impl<T, C> AlphaColor<T, C>
[src]
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]
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]
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]
S2: TransferFunction,
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]
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.
pub fn add(self, rhs: AlphaColor<T, C>) -> AlphaColor<T, C>
[src]
impl<T, C> BorrowMut<[T; 4]> for AlphaColor<T, C> where
C: BorrowMut<[T; 3]>,
[src]
impl<T, C> BorrowMut<[T; 4]> for AlphaColor<T, C> where
C: BorrowMut<[T; 3]>,
[src]pub fn borrow_mut(&mut self) -> &mut [T; 4]
[src]
impl<T, C> Clone for AlphaColor<T, C> where
C: Clone,
T: Clone,
[src]
impl<T, C> Clone for AlphaColor<T, C> where
C: Clone,
T: Clone,
[src]pub fn clone(&self) -> AlphaColor<T, C>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T, C> Color<T> for AlphaColor<T, C> where
C: Color<T>,
T: Channel,
[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]
self,
lo: AlphaColor<T, C>,
hi: AlphaColor<T, C>
) -> AlphaColor<T, C>
Clamps the components of the color component-wise between lo
and hi
.
pub fn inverse(self) -> AlphaColor<T, C>
[src]
Inverts the color.
pub fn mix(self, other: AlphaColor<T, C>, value: T) -> AlphaColor<T, C>
[src]
impl<T, C> Debug for AlphaColor<T, C> where
C: Debug,
T: Debug,
[src]
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<'de, T, C> Deserialize<'de> for AlphaColor<T, C> where
C: Deserialize<'de>,
T: Deserialize<'de>,
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<AlphaColor<T, C>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<AlphaColor<T, C>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<T, C> Div<AlphaColor<T, C>> for AlphaColor<T, C> where
C: Div<C, Output = C>,
T: Channel,
[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.
pub fn div(self, rhs: AlphaColor<T, C>) -> AlphaColor<T, C>
[src]
impl<T, C> Div<T> for AlphaColor<T, C> where
C: Div<T, Output = C>,
T: Div<T, Output = T> + Channel,
[src]
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.
pub fn div(self, rhs: T) -> AlphaColor<T, C>
[src]
impl IntoUniformValueRef for AlphaColor<f32, Rgb<f32, LinearRgb>>
[src]
impl IntoUniformValueRef for AlphaColor<f32, Rgb<f32, LinearRgb>>
[src]pub fn into_uniform_value_ref(&self) -> UniformValueRef<'_>
[src]
impl IntoUniformValueRef for AlphaColor<f32, Rgb<f32, Srgb>>
[src]
impl IntoUniformValueRef for AlphaColor<f32, Rgb<f32, Srgb>>
[src]pub fn into_uniform_value_ref(&self) -> UniformValueRef<'_>
[src]
impl<T, C> Mul<AlphaColor<T, C>> for AlphaColor<T, C> where
C: Mul<C, Output = C>,
T: Channel,
[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.
pub fn mul(self, rhs: AlphaColor<T, C>) -> AlphaColor<T, C>
[src]
impl<T, C> Mul<T> for AlphaColor<T, C> where
C: Mul<T, Output = C>,
T: Mul<T, Output = T> + Channel,
[src]
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.
pub fn mul(self, rhs: T) -> AlphaColor<T, C>
[src]
impl<T, C> PartialEq<AlphaColor<T, C>> for AlphaColor<T, C> where
C: PartialEq<C>,
T: PartialEq<T>,
[src]
impl<T, C> PartialEq<AlphaColor<T, C>> for AlphaColor<T, C> where
C: PartialEq<C>,
T: PartialEq<T>,
[src]pub fn eq(&self, other: &AlphaColor<T, C>) -> bool
[src]
pub fn ne(&self, other: &AlphaColor<T, C>) -> bool
[src]
impl<T, C> Saturating for AlphaColor<T, C> where
C: Saturating,
T: Channel + Saturating,
[src]
impl<T, C> Saturating for AlphaColor<T, C> where
C: Saturating,
T: Channel + Saturating,
[src]pub fn saturating_add(self, v: AlphaColor<T, C>) -> AlphaColor<T, C>
[src]
pub fn saturating_sub(self, v: AlphaColor<T, C>) -> AlphaColor<T, C>
[src]
impl<T, C> Serialize for AlphaColor<T, C> where
C: Serialize,
T: Serialize,
[src]
impl<T, C> Serialize for AlphaColor<T, C> where
C: Serialize,
T: Serialize,
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<T, S> Std140 for AlphaColor<T, Rgb<T, S>> where
T: Std140,
S: 'static,
[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]
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.
pub fn sub(self, rhs: AlphaColor<T, C>) -> AlphaColor<T, C>
[src]
impl<T, C> ToLuma for AlphaColor<T, C> where
C: ToLuma,
[src]
impl<T, C> ToLuma for AlphaColor<T, C> where
C: ToLuma,
[src]impl<T, C> ToRgb for AlphaColor<T, C> where
C: ToRgb,
[src]
impl<T, C> ToRgb for AlphaColor<T, C> where
C: ToRgb,
[src]impl<T, C> ToRgba for AlphaColor<T, C> where
C: ToRgb,
T: Channel,
[src]
impl<T, C> ToRgba for AlphaColor<T, C> where
C: ToRgb,
T: Channel,
[src]impl<T, C> Copy for AlphaColor<T, C> where
C: Copy,
T: Copy,
[src]
C: Copy,
T: Copy,
impl<T, C> Eq for AlphaColor<T, C> where
C: Eq,
T: Eq,
[src]
C: Eq,
T: Eq,
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,
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, C> Send for AlphaColor<T, C> where
C: Send,
T: Send,
C: Send,
T: Send,
impl<T, C> Sync for AlphaColor<T, C> where
C: Sync,
T: Sync,
C: Sync,
T: Sync,
impl<T, C> Unpin for AlphaColor<T, C> where
C: Unpin,
T: Unpin,
C: Unpin,
T: Unpin,
impl<T, C> UnwindSafe for AlphaColor<T, C> where
C: UnwindSafe,
T: UnwindSafe,
C: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
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]; 4]> + 'static> for T where
T: AsRef<[[f32; 4]; 4]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[f32; 4]> + 'static> for T where
T: AsRef<[f32; 4]>,
[src]
impl<T> AsUniform<dyn AsRef<[f32; 4]> + 'static> for T where
T: AsRef<[f32; 4]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[i32; 4]> + 'static> for T where
T: AsRef<[i32; 4]>,
[src]
impl<T> AsUniform<dyn AsRef<[i32; 4]> + 'static> for T where
T: AsRef<[i32; 4]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[u32; 4]> + 'static> for T where
T: AsRef<[u32; 4]>,
[src]
impl<T> AsUniform<dyn AsRef<[u32; 4]> + 'static> for T where
T: AsRef<[u32; 4]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[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]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> WriteStd140 for T where
T: Std140,
[src]
impl<T> WriteStd140 for T where
T: Std140,
[src]pub fn write_std140(&self, data: &mut Data)
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,