#[repr(C)]pub struct ColorHSLAOf<T> {
pub h: T,
pub s: T,
pub l: T,
pub a: T,
}Fields§
§h: THue. Color coefficient. Ex: 0 = red, 0.25 = green, 0.5 = blue, 0.75 = magenta
s: TSaturation. Grayscale : 0, 1: pure color.
l: TLight. Black & White level. 0 = black, 0.5 = pure color, 1 = white
a: TAlpha
Implementations§
Source§impl<T> ColorHSLAOf<T>
impl<T> ColorHSLAOf<T>
pub const fn new(hue: T, saturation: T, lightness: T, alpha: T) -> Self
pub const fn new_hue(hue: T) -> Selfwhere
T: FloatingNumber,
pub const fn gray(coef: T) -> Selfwhere
T: FloatingNumber,
Sourcepub const fn hsla(hue: T, saturation: T, lightness: T, alpha: T) -> Self
pub const fn hsla(hue: T, saturation: T, lightness: T, alpha: T) -> Self
H : Color coefficient. Ex: 0 = red, 0.25 = green, 0.5 = blue, 0.75 = magenta
S : Grayscale : 0, 1: pure color.
L : Black & White level. 0 = black, 0.5 = pure color, 1 = white
Sourcepub const fn hsl(hue: T, saturation: T, lightness: T) -> Selfwhere
T: FloatingNumber,
pub const fn hsl(hue: T, saturation: T, lightness: T) -> Selfwhere
T: FloatingNumber,
Alpha is at max
H : Color coefficient. Ex: 0 = red, 0.25 = green, 0.5 = blue, 0.75 = magenta
S : Grayscale : 0, 1: pure color.
L : Black & White level. 0 = black, 0.5 = pure color, 1 = white
pub fn unpack_hsl(self) -> (T, T, T)
pub fn unpack_hsla(self) -> (T, T, T, T)
Trait Implementations§
Source§impl<T> Add<T> for ColorHSLAOf<T>
impl<T> Add<T> for ColorHSLAOf<T>
Source§impl<T> Add for ColorHSLAOf<T>where
T: Add<T>,
impl<T> Add for ColorHSLAOf<T>where
T: Add<T>,
Source§impl<T> AddAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>
impl<T> AddAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>
Source§fn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
Performs the
+= operation. Read moreSource§impl<T> AddAssign for ColorHSLAOf<T>where
T: AddAssign,
impl<T> AddAssign for ColorHSLAOf<T>where
T: AddAssign,
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl<T> ArrayLike<T, 4> for ColorHSLAOf<T>
impl<T> ArrayLike<T, 4> for ColorHSLAOf<T>
type WithType<T2> = ColorHSLAOf<T2>
fn array(&self) -> &[T; 4]
fn array_mut(&mut self) -> &mut [T; 4]
const DIMENSION: usize = N
fn splat(value: T) -> Selfwhere
T: Clone,
fn map<U, F>(self, f: F) -> Self::WithType<U>where
F: FnMut(T) -> U,
fn map_with<U, T2, F>(
self,
other: Self::WithType<T2>,
f: F,
) -> Self::WithType<U>where
F: FnMut(T, T2) -> U,
Source§fn any_with<T2, P>(&self, other: Self::WithType<T2>, p: P) -> bool
fn any_with<T2, P>(&self, other: Self::WithType<T2>, p: P) -> bool
True if the predicate is true for at least one component
Source§fn all_with<T2, P>(&self, other: &Self::WithType<T2>, p: P) -> bool
fn all_with<T2, P>(&self, other: &Self::WithType<T2>, p: P) -> bool
True if the predicate is true for all component
fn for_each<F>(&self, f: F)
fn for_each_mut<F>(&mut self, f: F)
fn slice(&self) -> &[T]
fn slice_mut(&mut self) -> &mut [T]
Source§impl<T> AsMut<[T; 4]> for ColorHSLAOf<T>
impl<T> AsMut<[T; 4]> for ColorHSLAOf<T>
Source§impl<T> AsRef<[T; 4]> for ColorHSLAOf<T>
impl<T> AsRef<[T; 4]> for ColorHSLAOf<T>
Source§impl<T> Binary for ColorHSLAOf<T>where
T: Binary,
impl<T> Binary for ColorHSLAOf<T>where
T: Binary,
Source§impl<T> BitAnd<T> for ColorHSLAOf<T>
impl<T> BitAnd<T> for ColorHSLAOf<T>
Source§impl<T> BitAnd for ColorHSLAOf<T>where
T: BitAnd<T>,
impl<T> BitAnd for ColorHSLAOf<T>where
T: BitAnd<T>,
Source§impl<T> BitAndAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>where
T: BitAndAssign + Copy,
impl<T> BitAndAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>where
T: BitAndAssign + Copy,
Source§fn bitand_assign(&mut self, rhs: &Self)
fn bitand_assign(&mut self, rhs: &Self)
Performs the
&= operation. Read moreSource§impl<T> BitAndAssign for ColorHSLAOf<T>where
T: BitAndAssign,
impl<T> BitAndAssign for ColorHSLAOf<T>where
T: BitAndAssign,
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl<T> BitOr<T> for ColorHSLAOf<T>
impl<T> BitOr<T> for ColorHSLAOf<T>
Source§impl<T> BitOr for ColorHSLAOf<T>where
T: BitOr<T>,
impl<T> BitOr for ColorHSLAOf<T>where
T: BitOr<T>,
Source§impl<T> BitOrAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>where
T: BitOrAssign + Copy,
impl<T> BitOrAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>where
T: BitOrAssign + Copy,
Source§fn bitor_assign(&mut self, rhs: &Self)
fn bitor_assign(&mut self, rhs: &Self)
Performs the
|= operation. Read moreSource§impl<T> BitOrAssign for ColorHSLAOf<T>where
T: BitOrAssign,
impl<T> BitOrAssign for ColorHSLAOf<T>where
T: BitOrAssign,
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl<T> BitXor<T> for ColorHSLAOf<T>
impl<T> BitXor<T> for ColorHSLAOf<T>
Source§impl<T> BitXor for ColorHSLAOf<T>where
T: BitXor<T>,
impl<T> BitXor for ColorHSLAOf<T>where
T: BitXor<T>,
Source§impl<T> BitXorAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>where
T: BitXorAssign + Copy,
impl<T> BitXorAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>where
T: BitXorAssign + Copy,
Source§fn bitxor_assign(&mut self, rhs: &Self)
fn bitxor_assign(&mut self, rhs: &Self)
Performs the
^= operation. Read moreSource§impl<T> BitXorAssign for ColorHSLAOf<T>where
T: BitXorAssign,
impl<T> BitXorAssign for ColorHSLAOf<T>where
T: BitXorAssign,
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl<T> Clone for ColorHSLAOf<T>where
T: Clone,
impl<T> Clone for ColorHSLAOf<T>where
T: Clone,
Source§impl<T> Debug for ColorHSLAOf<T>where
T: Debug,
impl<T> Debug for ColorHSLAOf<T>where
T: Debug,
Source§impl<C: FloatingNumber> Default for ColorHSLAOf<C>
impl<C: FloatingNumber> Default for ColorHSLAOf<C>
Source§impl<'de, T> Deserialize<'de> for ColorHSLAOf<T>where
[T; 4]: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ColorHSLAOf<T>where
[T; 4]: Deserialize<'de>,
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> Display for ColorHSLAOf<T>where
T: Display,
impl<T> Display for ColorHSLAOf<T>where
T: Display,
Source§impl<T> Div<T> for ColorHSLAOf<T>
impl<T> Div<T> for ColorHSLAOf<T>
Source§impl<T> Div for ColorHSLAOf<T>where
T: Div<T>,
impl<T> Div for ColorHSLAOf<T>where
T: Div<T>,
Source§impl<T> DivAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>
impl<T> DivAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>
Source§fn div_assign(&mut self, rhs: &Self)
fn div_assign(&mut self, rhs: &Self)
Performs the
/= operation. Read moreSource§impl<T> DivAssign for ColorHSLAOf<T>where
T: DivAssign,
impl<T> DivAssign for ColorHSLAOf<T>where
T: DivAssign,
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/= operation. Read moreSource§impl<T> From<[T; 3]> for ColorHSLAOf<T>where
T: FloatingNumber,
impl<T> From<[T; 3]> for ColorHSLAOf<T>where
T: FloatingNumber,
Source§impl<T> From<[T; 4]> for ColorHSLAOf<T>
impl<T> From<[T; 4]> for ColorHSLAOf<T>
Source§impl<T> From<(T, T, T)> for ColorHSLAOf<T>where
T: FloatingNumber,
impl<T> From<(T, T, T)> for ColorHSLAOf<T>where
T: FloatingNumber,
Source§impl<T> From<(T, T, T, T)> for ColorHSLAOf<T>
impl<T> From<(T, T, T, T)> for ColorHSLAOf<T>
Source§fn from(value: (T, T, T, T)) -> Self
fn from(value: (T, T, T, T)) -> Self
Converts to this type from the input type.
Source§impl<T> From<ColorHSLAOf<T>> for [T; 3]
impl<T> From<ColorHSLAOf<T>> for [T; 3]
Source§fn from(value: ColorHSLAOf<T>) -> Self
fn from(value: ColorHSLAOf<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<ColorHSLAOf<T>> for [T; 4]
impl<T> From<ColorHSLAOf<T>> for [T; 4]
Source§fn from(value: ColorHSLAOf<T>) -> Self
fn from(value: ColorHSLAOf<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<ColorHSLAOf<T>> for (T, T, T)
impl<T> From<ColorHSLAOf<T>> for (T, T, T)
Source§fn from(value: ColorHSLAOf<T>) -> Self
fn from(value: ColorHSLAOf<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<ColorHSLAOf<T>> for (T, T, T, T)
impl<T> From<ColorHSLAOf<T>> for (T, T, T, T)
Source§fn from(value: ColorHSLAOf<T>) -> Self
fn from(value: ColorHSLAOf<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<ColorHSLAOf<T>> for Vector3<T>
impl<T> From<ColorHSLAOf<T>> for Vector3<T>
Source§fn from(value: ColorHSLAOf<T>) -> Self
fn from(value: ColorHSLAOf<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<ColorHSLAOf<T>> for Vector4<T>
impl<T> From<ColorHSLAOf<T>> for Vector4<T>
Source§fn from(value: ColorHSLAOf<T>) -> Self
fn from(value: ColorHSLAOf<T>) -> Self
Converts to this type from the input type.
Source§impl From<ColorHSLAOf<f32>> for ColorByte
impl From<ColorHSLAOf<f32>> for ColorByte
Source§fn from(value: ColorHSLAOf<float>) -> Self
fn from(value: ColorHSLAOf<float>) -> Self
Converts to this type from the input type.
Source§impl<T> From<T> for ColorHSLAOf<T>where
T: Copy,
impl<T> From<T> for ColorHSLAOf<T>where
T: Copy,
Source§impl<T> From<Vector<T, 3>> for ColorHSLAOf<T>where
T: FloatingNumber,
impl<T> From<Vector<T, 3>> for ColorHSLAOf<T>where
T: FloatingNumber,
Source§impl<T> From<Vector<T, 4>> for ColorHSLAOf<T>
impl<T> From<Vector<T, 4>> for ColorHSLAOf<T>
Source§impl<T, Idx> Get<Idx> for ColorHSLAOf<T>
impl<T, Idx> Get<Idx> for ColorHSLAOf<T>
type Output = <[T; 4] as Get<Idx>>::Output
fn try_get(&self, index: Idx) -> Result<&Self::Output, ()>
fn get(&self, index: Idx) -> Option<&Self::Output>
unsafe fn get_unchecked(&self, index: Idx) -> &Self::Output
fn get_or_panic(&self, index: Idx) -> &Self::Output
Source§fn is_index_valid(&self, index: Idx) -> bool
fn is_index_valid(&self, index: Idx) -> bool
True if
get(index) return Some, false otherwise.Source§fn is_index_invalid(&self, index: Idx) -> bool
fn is_index_invalid(&self, index: Idx) -> bool
True if
get(index) return None, false otherwise.Source§impl<T, Idx> GetManyMut<Idx> for ColorHSLAOf<T>where
[T; 4]: GetManyMut<Idx>,
impl<T, Idx> GetManyMut<Idx> for ColorHSLAOf<T>where
[T; 4]: GetManyMut<Idx>,
Source§fn try_get_many_mut<const N: usize>(
&mut self,
indices: [Idx; N],
) -> Result<[&mut Self::Output; N], ()>
fn try_get_many_mut<const N: usize>( &mut self, indices: [Idx; N], ) -> Result<[&mut Self::Output; N], ()>
Returns multiples mutables references to the values.
All values that can be accessed with the indices must be disjoint.
Source§unsafe fn get_many_unchecked_mut<const N: usize>(
&mut self,
indices: [Idx; N],
) -> [&mut Self::Output; N]
unsafe fn get_many_unchecked_mut<const N: usize>( &mut self, indices: [Idx; N], ) -> [&mut Self::Output; N]
Returns multiples mutables references to the values.
All values that can be accessed with the indices must be disjoint.
Source§fn get_many_mut<const N: usize>(
&mut self,
indices: [Idx; N],
) -> Option<[&mut Self::Output; N]>
fn get_many_mut<const N: usize>( &mut self, indices: [Idx; N], ) -> Option<[&mut Self::Output; N]>
Returns multiples mutables references to the values.
All values that can be accessed with the indices must be disjoint.
Source§fn get_many_mut_or_panic<const N: usize>(
&mut self,
indices: [Idx; N],
) -> [&mut Self::Output; N]
fn get_many_mut_or_panic<const N: usize>( &mut self, indices: [Idx; N], ) -> [&mut Self::Output; N]
Returns multiples mutables references to the values.
All values that can be accessed with the indices must be disjoint.
Source§fn try_swap(&mut self, a: Idx, b: Idx) -> Result<(), ()>
fn try_swap(&mut self, a: Idx, b: Idx) -> Result<(), ()>
Swaps the values at two mutable locations, without deinitializing either one. Read more
Source§fn swap(&mut self, a: Idx, b: Idx) -> bool
fn swap(&mut self, a: Idx, b: Idx) -> bool
Swaps the values at two mutable locations, without deinitializing either one. Read more
Source§fn swap_or_panic(&mut self, a: Idx, b: Idx)
fn swap_or_panic(&mut self, a: Idx, b: Idx)
Swaps the values at two mutable locations, without deinitializing either one. Read more
Source§impl<T, Idx> GetMut<Idx> for ColorHSLAOf<T>
impl<T, Idx> GetMut<Idx> for ColorHSLAOf<T>
fn try_get_mut(&mut self, index: Idx) -> Result<&mut Self::Output, ()>
fn get_mut(&mut self, index: Idx) -> Option<&mut Self::Output>
unsafe fn get_unchecked_mut(&mut self, index: Idx) -> &mut Self::Output
fn get_mut_or_panic(&mut self, idx: Idx) -> &mut Self::Output
Source§fn try_replace(
&mut self,
index: Idx,
value: Self::Output,
) -> Result<Self::Output, ()>
fn try_replace( &mut self, index: Idx, value: Self::Output, ) -> Result<Self::Output, ()>
Replace the value and return the old one. Read more
Source§fn replace(&mut self, index: Idx, value: Self::Output) -> Option<Self::Output>
fn replace(&mut self, index: Idx, value: Self::Output) -> Option<Self::Output>
Replace the value and return the old one. Read more
Source§fn replace_or_panic(&mut self, index: Idx, value: Self::Output) -> Self::Output
fn replace_or_panic(&mut self, index: Idx, value: Self::Output) -> Self::Output
Replace the value and return the old one. Read more
Source§unsafe fn replace_unchecked(
&mut self,
index: Idx,
value: Self::Output,
) -> Self::Output
unsafe fn replace_unchecked( &mut self, index: Idx, value: Self::Output, ) -> Self::Output
Replace the value and return the old one. Read more
Source§fn try_set(&mut self, index: Idx, value: Self::Output) -> Result<(), ()>
fn try_set(&mut self, index: Idx, value: Self::Output) -> Result<(), ()>
Set the value and drop the previous one.
Source§fn set(&mut self, index: Idx, value: Self::Output) -> bool
fn set(&mut self, index: Idx, value: Self::Output) -> bool
Set the value and drop the previous one.
Source§fn set_or_panic(&mut self, index: Idx, value: Self::Output) -> &mut Self
fn set_or_panic(&mut self, index: Idx, value: Self::Output) -> &mut Self
Set the value and drop the previous one.
unsafe fn set_unchecked(&mut self, index: Idx, value: Self::Output) -> &mut Self
Source§impl<T> Hash for ColorHSLAOf<T>where
T: Hash,
impl<T> Hash for ColorHSLAOf<T>where
T: Hash,
Source§impl<T, Idx> Index<Idx> for ColorHSLAOf<T>
impl<T, Idx> Index<Idx> for ColorHSLAOf<T>
Source§impl<T, Idx> IndexMut<Idx> for ColorHSLAOf<T>
impl<T, Idx> IndexMut<Idx> for ColorHSLAOf<T>
Source§impl<'a, T> IntoIterator for &'a ColorHSLAOf<T>where
&'a [T; 4]: IntoIterator,
impl<'a, T> IntoIterator for &'a ColorHSLAOf<T>where
&'a [T; 4]: IntoIterator,
Source§impl<'a, T> IntoIterator for &'a mut ColorHSLAOf<T>where
&'a mut [T; 4]: IntoIterator,
impl<'a, T> IntoIterator for &'a mut ColorHSLAOf<T>where
&'a mut [T; 4]: IntoIterator,
Source§impl<T> IntoIterator for ColorHSLAOf<T>where
[T; 4]: IntoIterator,
impl<T> IntoIterator for ColorHSLAOf<T>where
[T; 4]: IntoIterator,
Source§impl<T> LowerExp for ColorHSLAOf<T>where
T: LowerExp,
impl<T> LowerExp for ColorHSLAOf<T>where
T: LowerExp,
Source§impl<T> LowerHex for ColorHSLAOf<T>where
T: LowerHex,
impl<T> LowerHex for ColorHSLAOf<T>where
T: LowerHex,
Source§impl<T> Mul<T> for ColorHSLAOf<T>
impl<T> Mul<T> for ColorHSLAOf<T>
Source§impl<T> Mul for ColorHSLAOf<T>where
T: Mul<T>,
impl<T> Mul for ColorHSLAOf<T>where
T: Mul<T>,
Source§impl<T> MulAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>
impl<T> MulAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>
Source§fn mul_assign(&mut self, rhs: &Self)
fn mul_assign(&mut self, rhs: &Self)
Performs the
*= operation. Read moreSource§impl<T> MulAssign for ColorHSLAOf<T>where
T: MulAssign,
impl<T> MulAssign for ColorHSLAOf<T>where
T: MulAssign,
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moreSource§impl<T> Neg for ColorHSLAOf<T>where
T: Neg,
impl<T> Neg for ColorHSLAOf<T>where
T: Neg,
Source§impl<T> Not for ColorHSLAOf<T>where
T: Not,
impl<T> Not for ColorHSLAOf<T>where
T: Not,
Source§impl<T> Octal for ColorHSLAOf<T>where
T: Octal,
impl<T> Octal for ColorHSLAOf<T>where
T: Octal,
Source§impl<T> Ord for ColorHSLAOf<T>where
T: Ord,
impl<T> Ord for ColorHSLAOf<T>where
T: Ord,
Source§impl<T> PartialEq for ColorHSLAOf<T>where
T: PartialEq,
impl<T> PartialEq for ColorHSLAOf<T>where
T: PartialEq,
Source§impl<T> PartialOrd for ColorHSLAOf<T>where
T: PartialOrd,
impl<T> PartialOrd for ColorHSLAOf<T>where
T: PartialOrd,
Source§impl<T> Pointer for ColorHSLAOf<T>where
T: Pointer,
impl<T> Pointer for ColorHSLAOf<T>where
T: Pointer,
Source§impl<T> Product for ColorHSLAOf<T>
impl<T> Product for ColorHSLAOf<T>
Source§impl<T> Rem<T> for ColorHSLAOf<T>
impl<T> Rem<T> for ColorHSLAOf<T>
Source§impl<T> Rem for ColorHSLAOf<T>where
T: Rem<T>,
impl<T> Rem for ColorHSLAOf<T>where
T: Rem<T>,
Source§impl<T> RemAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>
impl<T> RemAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>
Source§fn rem_assign(&mut self, rhs: &Self)
fn rem_assign(&mut self, rhs: &Self)
Performs the
%= operation. Read moreSource§impl<T> RemAssign for ColorHSLAOf<T>where
T: RemAssign,
impl<T> RemAssign for ColorHSLAOf<T>where
T: RemAssign,
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
Performs the
%= operation. Read moreSource§impl<T> Serialize for ColorHSLAOf<T>
impl<T> Serialize for ColorHSLAOf<T>
Source§impl<T> Shl<T> for ColorHSLAOf<T>
impl<T> Shl<T> for ColorHSLAOf<T>
Source§impl<T> Shl for ColorHSLAOf<T>where
T: Shl<T>,
impl<T> Shl for ColorHSLAOf<T>where
T: Shl<T>,
Source§impl<T> ShlAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>
impl<T> ShlAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>
Source§fn shl_assign(&mut self, rhs: &Self)
fn shl_assign(&mut self, rhs: &Self)
Performs the
<<= operation. Read moreSource§impl<T> ShlAssign for ColorHSLAOf<T>where
T: ShlAssign,
impl<T> ShlAssign for ColorHSLAOf<T>where
T: ShlAssign,
Source§fn shl_assign(&mut self, rhs: Self)
fn shl_assign(&mut self, rhs: Self)
Performs the
<<= operation. Read moreSource§impl<T> Shr<T> for ColorHSLAOf<T>
impl<T> Shr<T> for ColorHSLAOf<T>
Source§impl<T> Shr for ColorHSLAOf<T>where
T: Shr<T>,
impl<T> Shr for ColorHSLAOf<T>where
T: Shr<T>,
Source§impl<T> ShrAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>
impl<T> ShrAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>
Source§fn shr_assign(&mut self, rhs: &Self)
fn shr_assign(&mut self, rhs: &Self)
Performs the
>>= operation. Read moreSource§impl<T> ShrAssign for ColorHSLAOf<T>where
T: ShrAssign,
impl<T> ShrAssign for ColorHSLAOf<T>where
T: ShrAssign,
Source§fn shr_assign(&mut self, rhs: Self)
fn shr_assign(&mut self, rhs: Self)
Performs the
>>= operation. Read moreSource§impl<T> Sub<T> for ColorHSLAOf<T>
impl<T> Sub<T> for ColorHSLAOf<T>
Source§impl<T> Sub for ColorHSLAOf<T>where
T: Sub<T>,
impl<T> Sub for ColorHSLAOf<T>where
T: Sub<T>,
Source§impl<T> SubAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>
impl<T> SubAssign<&ColorHSLAOf<T>> for ColorHSLAOf<T>
Source§fn sub_assign(&mut self, rhs: &Self)
fn sub_assign(&mut self, rhs: &Self)
Performs the
-= operation. Read moreSource§impl<T> SubAssign for ColorHSLAOf<T>where
T: SubAssign,
impl<T> SubAssign for ColorHSLAOf<T>where
T: SubAssign,
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreSource§impl<T> Sum for ColorHSLAOf<T>
impl<T> Sum for ColorHSLAOf<T>
Source§impl<T> UpperExp for ColorHSLAOf<T>where
T: UpperExp,
impl<T> UpperExp for ColorHSLAOf<T>where
T: UpperExp,
Source§impl<T> UpperHex for ColorHSLAOf<T>where
T: UpperHex,
impl<T> UpperHex for ColorHSLAOf<T>where
T: UpperHex,
impl<T> Copy for ColorHSLAOf<T>where
T: Copy,
impl<T> Eq for ColorHSLAOf<T>where
T: Eq,
Auto Trait Implementations§
impl<T> Freeze for ColorHSLAOf<T>where
T: Freeze,
impl<T> RefUnwindSafe for ColorHSLAOf<T>where
T: RefUnwindSafe,
impl<T> Send for ColorHSLAOf<T>where
T: Send,
impl<T> Sync for ColorHSLAOf<T>where
T: Sync,
impl<T> Unpin for ColorHSLAOf<T>where
T: Unpin,
impl<T> UnwindSafe for ColorHSLAOf<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<S, T, const N: usize> ArrayLikeExtension<T, N> for Swhere
S: ArrayLike<T, N>,
impl<S, T, const N: usize> ArrayLikeExtension<T, N> for Swhere
S: ArrayLike<T, N>,
fn min_element(&self) -> &Twhere
T: PartialOrd,
fn max_element(&self) -> &Twhere
T: PartialOrd,
fn min_element_idx(&self) -> usizewhere
T: PartialOrd,
fn max_element_idx(&self) -> usizewhere
T: PartialOrd,
Source§fn to_array_1d_filled(self, fill: T) -> [T; 1]where
T: Clone,
fn to_array_1d_filled(self, fill: T) -> [T; 1]where
T: Clone,
Fill non existing component with the Cloned given value
Source§fn to_array_2d_filled(self, fill: T) -> [T; 2]where
T: Clone,
fn to_array_2d_filled(self, fill: T) -> [T; 2]where
T: Clone,
Fill non existing component with the Cloned given value
Source§fn to_array_3d_filled(self, fill: T) -> [T; 3]where
T: Clone,
fn to_array_3d_filled(self, fill: T) -> [T; 3]where
T: Clone,
Fill non existing component with the Cloned given value
Source§fn to_array_4d_filled(self, fill: T) -> [T; 4]where
T: Clone,
fn to_array_4d_filled(self, fill: T) -> [T; 4]where
T: Clone,
Fill non existing component with the Cloned given value
Source§fn to_point1_filled(self, fill: int) -> Point1
fn to_point1_filled(self, fill: int) -> Point1
Fill non existing component with the given value
Source§fn to_point2_filled(self, fill: int) -> Point2
fn to_point2_filled(self, fill: int) -> Point2
Fill non existing component with the given value
Source§fn to_point3_filled(self, fill: int) -> Point3
fn to_point3_filled(self, fill: int) -> Point3
Fill non existing component with the given value
Source§fn to_point4_filled(self, fill: int) -> Point4
fn to_point4_filled(self, fill: int) -> Point4
Fill non existing component with the given value
Source§fn to_vec1_filled(self, fill: float) -> Vec1
fn to_vec1_filled(self, fill: float) -> Vec1
Fill non existing component with the given value
Source§fn to_vec2_filled(self, fill: float) -> Vec2
fn to_vec2_filled(self, fill: float) -> Vec2
Fill non existing component with the given value
Source§fn to_vec3_filled(self, fill: float) -> Vec3
fn to_vec3_filled(self, fill: float) -> Vec3
Fill non existing component with the given value
Source§fn to_vec4_filled(self, fill: float) -> Vec4
fn to_vec4_filled(self, fill: float) -> Vec4
Fill non existing component with the given value
Source§fn to_vector1_filled(self, fill: T) -> Vector1<T>where
T: Clone,
fn to_vector1_filled(self, fill: T) -> Vector1<T>where
T: Clone,
Fill non existing component with the given value
Source§fn to_vector2_filled(self, fill: T) -> Vector2<T>where
T: Clone,
fn to_vector2_filled(self, fill: T) -> Vector2<T>where
T: Clone,
Fill non existing component with the given value
Source§fn to_vector3_filled(self, fill: T) -> Vector3<T>where
T: Clone,
fn to_vector3_filled(self, fill: T) -> Vector3<T>where
T: Clone,
Fill non existing component with the given value
Source§fn to_vector4_filled(self, fill: T) -> Vector4<T>where
T: Clone,
fn to_vector4_filled(self, fill: T) -> Vector4<T>where
T: Clone,
Fill non existing component with the given value
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DefaultIsTripleUnderscore for Twhere
T: Default,
impl<T> DefaultIsTripleUnderscore for Twhere
T: Default,
Source§impl<C, T, const N: usize> ExtensionAsArray<T, N> for C
impl<C, T, const N: usize> ExtensionAsArray<T, N> for C
Source§impl<C, T, const N: usize> ExtensionAsArrayMut<T, N> for C
impl<C, T, const N: usize> ExtensionAsArrayMut<T, N> for C
fn as_array_mut(&mut self) -> &mut [T; N]
Source§impl<C, T, const N: usize> ExtensionFromArray<T, N> for C
impl<C, T, const N: usize> ExtensionFromArray<T, N> for C
fn from_array(value: [T; N]) -> Self
Source§impl<C, T, const N: usize> ExtensionToArray<T, N> for C
impl<C, T, const N: usize> ExtensionToArray<T, N> for C
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more