[−][src]Struct color::AlphaColor
Fields
c: C
a: 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.
fn mix(self, other: Self, value: T) -> Self
[src]
impl<T: Clone, C: Clone> Clone for AlphaColor<T, C>
[src]
fn clone(&self) -> 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]
fn eq(&self, other: &AlphaColor<T, C>) -> bool
[src]
fn ne(&self, other: &AlphaColor<T, C>) -> bool
[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.
fn sub(self, rhs: AlphaColor<T, C>) -> AlphaColor<T, C>
[src]
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.
fn div(self, rhs: AlphaColor<T, C>) -> AlphaColor<T, C>
[src]
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.
fn div(self, rhs: T) -> AlphaColor<T, C>
[src]
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.
fn add(self, rhs: AlphaColor<T, C>) -> AlphaColor<T, C>
[src]
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.
fn mul(self, rhs: AlphaColor<T, C>) -> AlphaColor<T, C>
[src]
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.
fn mul(self, rhs: T) -> AlphaColor<T, C>
[src]
impl<T, C: AsRef<[T; 3]>> Index<usize> for AlphaColor<T, C>
[src]
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]
fn saturating_add(self, v: AlphaColor<T, C>) -> AlphaColor<T, C>
[src]
fn saturating_sub(self, v: AlphaColor<T, C>) -> AlphaColor<T, C>
[src]
impl<T, C> Serialize for AlphaColor<T, C> where
T: Serialize,
C: Serialize,
[src]
T: Serialize,
C: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, T, C> Deserialize<'de> for AlphaColor<T, C> where
T: Deserialize<'de>,
C: Deserialize<'de>,
[src]
T: Deserialize<'de>,
C: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<T, C> Unpin for AlphaColor<T, C> where
C: Unpin,
T: Unpin,
C: Unpin,
T: Unpin,
impl<T, C> Sync for AlphaColor<T, C> where
C: Sync,
T: Sync,
C: Sync,
T: Sync,
impl<T, C> Send for AlphaColor<T, C> where
C: Send,
T: Send,
C: Send,
T: Send,
impl<T, C> UnwindSafe for AlphaColor<T, C> where
C: UnwindSafe,
T: UnwindSafe,
C: UnwindSafe,
T: UnwindSafe,
impl<T, C> RefUnwindSafe for AlphaColor<T, C> where
C: RefUnwindSafe,
T: RefUnwindSafe,
C: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,