#[repr(C)]pub struct ColorRGBAOf<T> {
pub r: T,
pub g: T,
pub b: T,
pub a: T,
}Fields§
§r: TRed
g: TGreen
b: TBlue
a: TAlpha
Implementations§
Source§impl<T> ColorRGBAOf<T>
impl<T> ColorRGBAOf<T>
pub const fn new(red: T, green: T, blue: T, alpha: T) -> Self
pub const fn rgba(red: T, green: T, blue: T, alpha: T) -> Self
pub const fn rgb(red: T, green: T, blue: T) -> Selfwhere
T: DefaultRange,
pub const fn gray(rgb: T) -> Selfwhere
T: DefaultRange + Copy,
pub fn rgba_ref(&self) -> &[T; 4]
pub fn rgba_mut(&mut self) -> &mut [T; 4]
pub fn rgb_ref(&self) -> &[T; 3]
pub fn rgb_mut(&mut self) -> &mut [T; 3]
pub fn splat_rgba(rgba: T) -> Selfwhere
T: Clone,
Sourcepub fn splat_rgb(rgb: T) -> Selfwhere
T: Clone + DefaultRange,
pub fn splat_rgb(rgb: T) -> Selfwhere
T: Clone + DefaultRange,
Alpha is at max
pub fn splat_rgb_with_a(rgb: T, a: T) -> Selfwhere
T: Clone,
pub fn unpack_rgb(self) -> (T, T, T)
pub fn unpack_rgba(self) -> (T, T, T, T)
Trait Implementations§
Source§impl<T> Add<T> for ColorRGBAOf<T>
impl<T> Add<T> for ColorRGBAOf<T>
Source§impl<T> Add for ColorRGBAOf<T>where
T: Add<T>,
impl<T> Add for ColorRGBAOf<T>where
T: Add<T>,
Source§impl<T> AddAssign<&ColorRGBAOf<T>> for ColorRGBAOf<T>
impl<T> AddAssign<&ColorRGBAOf<T>> for ColorRGBAOf<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 ColorRGBAOf<T>where
T: AddAssign,
impl<T> AddAssign for ColorRGBAOf<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 ColorRGBAOf<T>
impl<T> ArrayLike<T, 4> for ColorRGBAOf<T>
type WithType<T2> = ColorRGBAOf<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 ColorRGBAOf<T>
impl<T> AsMut<[T; 4]> for ColorRGBAOf<T>
Source§impl<T> AsRef<[T; 4]> for ColorRGBAOf<T>
impl<T> AsRef<[T; 4]> for ColorRGBAOf<T>
Source§impl<T> Binary for ColorRGBAOf<T>where
T: Binary,
impl<T> Binary for ColorRGBAOf<T>where
T: Binary,
Source§impl<T> BitAnd<T> for ColorRGBAOf<T>
impl<T> BitAnd<T> for ColorRGBAOf<T>
Source§impl<T> BitAnd for ColorRGBAOf<T>where
T: BitAnd<T>,
impl<T> BitAnd for ColorRGBAOf<T>where
T: BitAnd<T>,
Source§impl<T> BitAndAssign<&ColorRGBAOf<T>> for ColorRGBAOf<T>where
T: BitAndAssign + Copy,
impl<T> BitAndAssign<&ColorRGBAOf<T>> for ColorRGBAOf<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 ColorRGBAOf<T>where
T: BitAndAssign,
impl<T> BitAndAssign for ColorRGBAOf<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 ColorRGBAOf<T>
impl<T> BitOr<T> for ColorRGBAOf<T>
Source§impl<T> BitOr for ColorRGBAOf<T>where
T: BitOr<T>,
impl<T> BitOr for ColorRGBAOf<T>where
T: BitOr<T>,
Source§impl<T> BitOrAssign<&ColorRGBAOf<T>> for ColorRGBAOf<T>where
T: BitOrAssign + Copy,
impl<T> BitOrAssign<&ColorRGBAOf<T>> for ColorRGBAOf<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 ColorRGBAOf<T>where
T: BitOrAssign,
impl<T> BitOrAssign for ColorRGBAOf<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 ColorRGBAOf<T>
impl<T> BitXor<T> for ColorRGBAOf<T>
Source§impl<T> BitXor for ColorRGBAOf<T>where
T: BitXor<T>,
impl<T> BitXor for ColorRGBAOf<T>where
T: BitXor<T>,
Source§impl<T> BitXorAssign<&ColorRGBAOf<T>> for ColorRGBAOf<T>where
T: BitXorAssign + Copy,
impl<T> BitXorAssign<&ColorRGBAOf<T>> for ColorRGBAOf<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 ColorRGBAOf<T>where
T: BitXorAssign,
impl<T> BitXorAssign for ColorRGBAOf<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, CastToOut> CastIntoComposite<CastToOut> for ColorRGBAOf<T>where
T: CastIntoComposite<CastToOut>,
impl<T, CastToOut> CastIntoComposite<CastToOut> for ColorRGBAOf<T>where
T: CastIntoComposite<CastToOut>,
type Output = ColorRGBAOf<<T as CastIntoComposite<CastToOut>>::Output>
Source§fn cast_into_composite(self) -> Self::Output
fn cast_into_composite(self) -> Self::Output
Might lose some precision.
Same semantics as the as keyword:
4f32 as u64Source§impl<T> Clone for ColorRGBAOf<T>where
T: Clone,
impl<T> Clone for ColorRGBAOf<T>where
T: Clone,
Source§impl<T> Debug for ColorRGBAOf<T>where
T: Debug,
impl<T> Debug for ColorRGBAOf<T>where
T: Debug,
Source§impl<T> Default for ColorRGBAOf<T>where
T: DefaultRange,
impl<T> Default for ColorRGBAOf<T>where
T: DefaultRange,
Source§impl<'de, T> Deserialize<'de> for ColorRGBAOf<T>where
[T; 4]: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ColorRGBAOf<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 ColorRGBAOf<T>where
T: Display,
impl<T> Display for ColorRGBAOf<T>where
T: Display,
Source§impl<T> Div<T> for ColorRGBAOf<T>
impl<T> Div<T> for ColorRGBAOf<T>
Source§impl<T> Div for ColorRGBAOf<T>where
T: Div<T>,
impl<T> Div for ColorRGBAOf<T>where
T: Div<T>,
Source§impl<T> DivAssign<&ColorRGBAOf<T>> for ColorRGBAOf<T>
impl<T> DivAssign<&ColorRGBAOf<T>> for ColorRGBAOf<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 ColorRGBAOf<T>where
T: DivAssign,
impl<T> DivAssign for ColorRGBAOf<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 ColorRGBAOf<T>where
T: DefaultRange,
impl<T> From<[T; 3]> for ColorRGBAOf<T>where
T: DefaultRange,
Source§impl<T> From<[T; 4]> for ColorRGBAOf<T>
impl<T> From<[T; 4]> for ColorRGBAOf<T>
Source§impl<T> From<(T, T, T)> for ColorRGBAOf<T>where
T: DefaultRange,
impl<T> From<(T, T, T)> for ColorRGBAOf<T>where
T: DefaultRange,
Source§impl<T> From<(T, T, T, T)> for ColorRGBAOf<T>
impl<T> From<(T, T, T, T)> for ColorRGBAOf<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<ColorRGBAOf<T>> for [T; 3]
impl<T> From<ColorRGBAOf<T>> for [T; 3]
Source§fn from(value: ColorRGBAOf<T>) -> Self
fn from(value: ColorRGBAOf<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<ColorRGBAOf<T>> for [T; 4]
impl<T> From<ColorRGBAOf<T>> for [T; 4]
Source§fn from(value: ColorRGBAOf<T>) -> Self
fn from(value: ColorRGBAOf<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<ColorRGBAOf<T>> for (T, T, T)
impl<T> From<ColorRGBAOf<T>> for (T, T, T)
Source§fn from(value: ColorRGBAOf<T>) -> Self
fn from(value: ColorRGBAOf<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<ColorRGBAOf<T>> for (T, T, T, T)
impl<T> From<ColorRGBAOf<T>> for (T, T, T, T)
Source§fn from(value: ColorRGBAOf<T>) -> Self
fn from(value: ColorRGBAOf<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<ColorRGBAOf<T>> for Vector3<T>
impl<T> From<ColorRGBAOf<T>> for Vector3<T>
Source§fn from(value: ColorRGBAOf<T>) -> Self
fn from(value: ColorRGBAOf<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<ColorRGBAOf<T>> for Vector4<T>
impl<T> From<ColorRGBAOf<T>> for Vector4<T>
Source§fn from(value: ColorRGBAOf<T>) -> Self
fn from(value: ColorRGBAOf<T>) -> Self
Converts to this type from the input type.
Source§impl From<ColorRGBAOf<u8>> for ColorHSLA
impl From<ColorRGBAOf<u8>> for ColorHSLA
Source§fn from(value: ColorRGBAByte) -> Self
fn from(value: ColorRGBAByte) -> Self
Converts to this type from the input type.
Source§impl<T> From<T> for ColorRGBAOf<T>where
T: Copy,
impl<T> From<T> for ColorRGBAOf<T>where
T: Copy,
Source§impl<T> From<Vector<T, 3>> for ColorRGBAOf<T>where
T: DefaultRange,
impl<T> From<Vector<T, 3>> for ColorRGBAOf<T>where
T: DefaultRange,
Source§impl<T> From<Vector<T, 4>> for ColorRGBAOf<T>
impl<T> From<Vector<T, 4>> for ColorRGBAOf<T>
Source§impl<T, Idx> Get<Idx> for ColorRGBAOf<T>
impl<T, Idx> Get<Idx> for ColorRGBAOf<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 ColorRGBAOf<T>where
[T; 4]: GetManyMut<Idx>,
impl<T, Idx> GetManyMut<Idx> for ColorRGBAOf<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 ColorRGBAOf<T>
impl<T, Idx> GetMut<Idx> for ColorRGBAOf<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> Half for ColorRGBAOf<T>where
T: Half,
impl<T> Half for ColorRGBAOf<T>where
T: Half,
Source§impl<T> Hash for ColorRGBAOf<T>where
T: Hash,
impl<T> Hash for ColorRGBAOf<T>where
T: Hash,
Source§impl<T> IColor for ColorRGBAOf<T>
impl<T> IColor for ColorRGBAOf<T>
const TRANSPARENT: Self
const BLACK: Self
const GRAY: Self
const WHITE: Self
const RED: Self
const GREEN: Self
const BLUE: Self
const CYAN: Self
const PINK: Self
const YELLOW: Self
fn rgba_from_bytes(r: u8, g: u8, b: u8, a: u8) -> Self
fn rgba_from_bytes_slice(rgba: &[u8]) -> Self
fn from_rgb_hex(hex: u32) -> Self
fn from_rgba_hex(hex: u32) -> Self
Source§fn to_rgba_hex(self) -> u32
fn to_rgba_hex(self) -> u32
Cast to color byte and convert to u32 using :
#RRGGBBAASource§fn to_rgba_hex_string(self) -> String
fn to_rgba_hex_string(self) -> String
Cast to color byte and format the color :
#RRGGBBAASource§impl<T, Idx> Index<Idx> for ColorRGBAOf<T>
impl<T, Idx> Index<Idx> for ColorRGBAOf<T>
Source§impl<T, Idx> IndexMut<Idx> for ColorRGBAOf<T>
impl<T, Idx> IndexMut<Idx> for ColorRGBAOf<T>
Source§impl<'a, T> IntoIterator for &'a ColorRGBAOf<T>where
&'a [T; 4]: IntoIterator,
impl<'a, T> IntoIterator for &'a ColorRGBAOf<T>where
&'a [T; 4]: IntoIterator,
Source§impl<'a, T> IntoIterator for &'a mut ColorRGBAOf<T>where
&'a mut [T; 4]: IntoIterator,
impl<'a, T> IntoIterator for &'a mut ColorRGBAOf<T>where
&'a mut [T; 4]: IntoIterator,
Source§impl<T> IntoIterator for ColorRGBAOf<T>where
[T; 4]: IntoIterator,
impl<T> IntoIterator for ColorRGBAOf<T>where
[T; 4]: IntoIterator,
Source§impl<T> LowerExp for ColorRGBAOf<T>where
T: LowerExp,
impl<T> LowerExp for ColorRGBAOf<T>where
T: LowerExp,
Source§impl<T> LowerHex for ColorRGBAOf<T>where
T: LowerHex,
impl<T> LowerHex for ColorRGBAOf<T>where
T: LowerHex,
Source§impl<T> MaxValue for ColorRGBAOf<T>where
T: MaxValue,
impl<T> MaxValue for ColorRGBAOf<T>where
T: MaxValue,
Source§impl<T> MinValue for ColorRGBAOf<T>where
T: MinValue,
impl<T> MinValue for ColorRGBAOf<T>where
T: MinValue,
Source§impl<T> Mul<T> for ColorRGBAOf<T>
impl<T> Mul<T> for ColorRGBAOf<T>
Source§impl<T> Mul for ColorRGBAOf<T>where
T: Mul<T>,
impl<T> Mul for ColorRGBAOf<T>where
T: Mul<T>,
Source§impl<T> MulAssign<&ColorRGBAOf<T>> for ColorRGBAOf<T>
impl<T> MulAssign<&ColorRGBAOf<T>> for ColorRGBAOf<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 ColorRGBAOf<T>where
T: MulAssign,
impl<T> MulAssign for ColorRGBAOf<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> NaNValue for ColorRGBAOf<T>where
T: NaNValue,
impl<T> NaNValue for ColorRGBAOf<T>where
T: NaNValue,
Source§impl<T> Neg for ColorRGBAOf<T>where
T: Neg,
impl<T> Neg for ColorRGBAOf<T>where
T: Neg,
Source§impl<T> Not for ColorRGBAOf<T>where
T: Not,
impl<T> Not for ColorRGBAOf<T>where
T: Not,
Source§impl<T> Octal for ColorRGBAOf<T>where
T: Octal,
impl<T> Octal for ColorRGBAOf<T>where
T: Octal,
Source§impl<T> One for ColorRGBAOf<T>where
T: One,
impl<T> One for ColorRGBAOf<T>where
T: One,
Source§impl<T> Ord for ColorRGBAOf<T>where
T: Ord,
impl<T> Ord for ColorRGBAOf<T>where
T: Ord,
Source§impl<T> PartialEq for ColorRGBAOf<T>where
T: PartialEq,
impl<T> PartialEq for ColorRGBAOf<T>where
T: PartialEq,
Source§impl<T> PartialOrd for ColorRGBAOf<T>where
T: PartialOrd,
impl<T> PartialOrd for ColorRGBAOf<T>where
T: PartialOrd,
Source§impl<T> Pointer for ColorRGBAOf<T>where
T: Pointer,
impl<T> Pointer for ColorRGBAOf<T>where
T: Pointer,
Source§impl<T> PrefixBillion for ColorRGBAOf<T>where
T: PrefixBillion,
impl<T> PrefixBillion for ColorRGBAOf<T>where
T: PrefixBillion,
Source§impl<T> PrefixCenti for ColorRGBAOf<T>where
T: PrefixCenti,
impl<T> PrefixCenti for ColorRGBAOf<T>where
T: PrefixCenti,
Source§impl<T> PrefixDeca for ColorRGBAOf<T>where
T: PrefixDeca,
impl<T> PrefixDeca for ColorRGBAOf<T>where
T: PrefixDeca,
Source§impl<T> PrefixDecade for ColorRGBAOf<T>where
T: PrefixDecade,
impl<T> PrefixDecade for ColorRGBAOf<T>where
T: PrefixDecade,
Source§impl<T> PrefixDeci for ColorRGBAOf<T>where
T: PrefixDeci,
impl<T> PrefixDeci for ColorRGBAOf<T>where
T: PrefixDeci,
Source§impl<T> PrefixFemto for ColorRGBAOf<T>where
T: PrefixFemto,
impl<T> PrefixFemto for ColorRGBAOf<T>where
T: PrefixFemto,
Source§impl<T> PrefixGiga for ColorRGBAOf<T>where
T: PrefixGiga,
impl<T> PrefixGiga for ColorRGBAOf<T>where
T: PrefixGiga,
Source§impl<T> PrefixHecto for ColorRGBAOf<T>where
T: PrefixHecto,
impl<T> PrefixHecto for ColorRGBAOf<T>where
T: PrefixHecto,
Source§impl<T> PrefixHundred for ColorRGBAOf<T>where
T: PrefixHundred,
impl<T> PrefixHundred for ColorRGBAOf<T>where
T: PrefixHundred,
Source§impl<T> PrefixKilo for ColorRGBAOf<T>where
T: PrefixKilo,
impl<T> PrefixKilo for ColorRGBAOf<T>where
T: PrefixKilo,
Source§impl<T> PrefixMega for ColorRGBAOf<T>where
T: PrefixMega,
impl<T> PrefixMega for ColorRGBAOf<T>where
T: PrefixMega,
Source§impl<T> PrefixMicro for ColorRGBAOf<T>where
T: PrefixMicro,
impl<T> PrefixMicro for ColorRGBAOf<T>where
T: PrefixMicro,
Source§impl<T> PrefixMilli for ColorRGBAOf<T>where
T: PrefixMilli,
impl<T> PrefixMilli for ColorRGBAOf<T>where
T: PrefixMilli,
Source§impl<T> PrefixMillion for ColorRGBAOf<T>where
T: PrefixMillion,
impl<T> PrefixMillion for ColorRGBAOf<T>where
T: PrefixMillion,
Source§impl<T> PrefixNano for ColorRGBAOf<T>where
T: PrefixNano,
impl<T> PrefixNano for ColorRGBAOf<T>where
T: PrefixNano,
Source§impl<T> PrefixPeta for ColorRGBAOf<T>where
T: PrefixPeta,
impl<T> PrefixPeta for ColorRGBAOf<T>where
T: PrefixPeta,
Source§impl<T> PrefixPico for ColorRGBAOf<T>where
T: PrefixPico,
impl<T> PrefixPico for ColorRGBAOf<T>where
T: PrefixPico,
Source§impl<T> PrefixQuadrillion for ColorRGBAOf<T>where
T: PrefixQuadrillion,
impl<T> PrefixQuadrillion for ColorRGBAOf<T>where
T: PrefixQuadrillion,
Source§const QUADRILLION: Self
const QUADRILLION: Self
10^15 = 1_000_000_000_000_000
Source§fn quadrillion(self) -> Selfwhere
Self: Mul<Self, Output = Self>,
fn quadrillion(self) -> Selfwhere
Self: Mul<Self, Output = Self>,
multiply by 10^15 = 1_000_000_000_000_000
Source§impl<T> PrefixTera for ColorRGBAOf<T>where
T: PrefixTera,
impl<T> PrefixTera for ColorRGBAOf<T>where
T: PrefixTera,
Source§impl<T> PrefixThousand for ColorRGBAOf<T>where
T: PrefixThousand,
impl<T> PrefixThousand for ColorRGBAOf<T>where
T: PrefixThousand,
Source§impl<T> PrefixTrillion for ColorRGBAOf<T>where
T: PrefixTrillion,
impl<T> PrefixTrillion for ColorRGBAOf<T>where
T: PrefixTrillion,
Source§impl<T> Product for ColorRGBAOf<T>
impl<T> Product for ColorRGBAOf<T>
Source§impl<T> Rem<T> for ColorRGBAOf<T>
impl<T> Rem<T> for ColorRGBAOf<T>
Source§impl<T> Rem for ColorRGBAOf<T>where
T: Rem<T>,
impl<T> Rem for ColorRGBAOf<T>where
T: Rem<T>,
Source§impl<T> RemAssign<&ColorRGBAOf<T>> for ColorRGBAOf<T>
impl<T> RemAssign<&ColorRGBAOf<T>> for ColorRGBAOf<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 ColorRGBAOf<T>where
T: RemAssign,
impl<T> RemAssign for ColorRGBAOf<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 ColorRGBAOf<T>
impl<T> Serialize for ColorRGBAOf<T>
Source§impl<T> Shl<T> for ColorRGBAOf<T>
impl<T> Shl<T> for ColorRGBAOf<T>
Source§impl<T> Shl for ColorRGBAOf<T>where
T: Shl<T>,
impl<T> Shl for ColorRGBAOf<T>where
T: Shl<T>,
Source§impl<T> ShlAssign<&ColorRGBAOf<T>> for ColorRGBAOf<T>
impl<T> ShlAssign<&ColorRGBAOf<T>> for ColorRGBAOf<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 ColorRGBAOf<T>where
T: ShlAssign,
impl<T> ShlAssign for ColorRGBAOf<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 ColorRGBAOf<T>
impl<T> Shr<T> for ColorRGBAOf<T>
Source§impl<T> Shr for ColorRGBAOf<T>where
T: Shr<T>,
impl<T> Shr for ColorRGBAOf<T>where
T: Shr<T>,
Source§impl<T> ShrAssign<&ColorRGBAOf<T>> for ColorRGBAOf<T>
impl<T> ShrAssign<&ColorRGBAOf<T>> for ColorRGBAOf<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 ColorRGBAOf<T>where
T: ShrAssign,
impl<T> ShrAssign for ColorRGBAOf<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 ColorRGBAOf<T>
impl<T> Sub<T> for ColorRGBAOf<T>
Source§impl<T> Sub for ColorRGBAOf<T>where
T: Sub<T>,
impl<T> Sub for ColorRGBAOf<T>where
T: Sub<T>,
Source§impl<T> SubAssign<&ColorRGBAOf<T>> for ColorRGBAOf<T>
impl<T> SubAssign<&ColorRGBAOf<T>> for ColorRGBAOf<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 ColorRGBAOf<T>where
T: SubAssign,
impl<T> SubAssign for ColorRGBAOf<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 ColorRGBAOf<T>
impl<T> Sum for ColorRGBAOf<T>
Source§impl<T> ToAngle for ColorRGBAOf<T>where
T: ToAngle,
impl<T> ToAngle for ColorRGBAOf<T>where
T: ToAngle,
Source§impl<T> ToColorRep for ColorRGBAOf<T>
impl<T> ToColorRep for ColorRGBAOf<T>
type ColorRGBA = ColorRGBAOf<f32>
type ColorHSLA = ColorHSLAOf<f32>
type ColorRGBAByte = ColorRGBAOf<u8>
fn to_rgba_coef(&self) -> Self::ColorRGBA
fn to_hsla(&self) -> Self::ColorHSLA
fn to_rgba_u8(&self) -> Self::ColorRGBAByte
fn to_color(&self) -> Self::ColorRGBA
Source§impl<T> ToSigned for ColorRGBAOf<T>where
T: ToSigned,
impl<T> ToSigned for ColorRGBAOf<T>where
T: ToSigned,
Source§impl<T> ToTime for ColorRGBAOf<T>where
T: ToTime,
impl<T> ToTime for ColorRGBAOf<T>where
T: ToTime,
Source§impl<T> ToUnsigned for ColorRGBAOf<T>where
T: ToUnsigned,
impl<T> ToUnsigned for ColorRGBAOf<T>where
T: ToUnsigned,
Source§type Output = ColorRGBAOf<<T as ToUnsigned>::Output>
type Output = ColorRGBAOf<<T as ToUnsigned>::Output>
The unsigned equivalence
fn to_unsigned(self) -> Self::Output
Source§impl<T> UpperExp for ColorRGBAOf<T>where
T: UpperExp,
impl<T> UpperExp for ColorRGBAOf<T>where
T: UpperExp,
Source§impl<T> UpperHex for ColorRGBAOf<T>where
T: UpperHex,
impl<T> UpperHex for ColorRGBAOf<T>where
T: UpperHex,
Source§impl<T> Zero for ColorRGBAOf<T>where
T: Zero,
impl<T> Zero for ColorRGBAOf<T>where
T: Zero,
impl<T> Copy for ColorRGBAOf<T>where
T: Copy,
impl<T> Eq for ColorRGBAOf<T>where
T: Eq,
Auto Trait Implementations§
impl<T> Freeze for ColorRGBAOf<T>where
T: Freeze,
impl<T> RefUnwindSafe for ColorRGBAOf<T>where
T: RefUnwindSafe,
impl<T> Send for ColorRGBAOf<T>where
T: Send,
impl<T> Sync for ColorRGBAOf<T>where
T: Sync,
impl<T> Unpin for ColorRGBAOf<T>where
T: Unpin,
impl<T> UnwindSafe for ColorRGBAOf<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> Decrease for T
impl<T> Decrease for T
Source§fn can_decrease(&self) -> bool
fn can_decrease(&self) -> bool
Do the current value have a predecessor. Read more
Source§fn predecessor(self) -> Self
fn predecessor(self) -> Self
Return the predecessor
self - 1Source§fn predecessor_checked(&mut self) -> Result<Self, ()>
fn predecessor_checked(&mut self) -> Result<Self, ()>
Return the predecessor
self - 1Source§fn have_predecessor(self) -> bool
fn have_predecessor(self) -> bool
Do the current value have a predecessor. Read more
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> Increase for T
impl<T> Increase for T
Source§fn can_increase(&self) -> bool
fn can_increase(&self) -> bool
Do the current value have a successor. Read more
Source§fn successor_checked(&mut self) -> Result<Self, ()>
fn successor_checked(&mut self) -> Result<Self, ()>
Return the successor
self + 1Source§fn have_successor(self) -> bool
fn have_successor(self) -> bool
Do the current value have a successor. Read more
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 moreSource§impl<T> PartialOrdExtension for Twhere
T: PartialOrd,
impl<T> PartialOrdExtension for Twhere
T: PartialOrd,
fn max_partial(self, other: Self) -> Selfwhere
Self: Sized,
fn min_partial(self, other: Self) -> Selfwhere
Self: Sized,
fn clamp_partial(self, min: Self, max: Self) -> Selfwhere
Self: Sized,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PositiveOrNegative for Twhere
T: Zero + PartialOrd,
impl<T> PositiveOrNegative for Twhere
T: Zero + PartialOrd,
Source§fn is_positive_or_zero(&self) -> bool
fn is_positive_or_zero(&self) -> bool
Is >= 0 Read more
Source§fn is_negative_or_zero(&self) -> bool
fn is_negative_or_zero(&self) -> bool
Is <= 0 Read more
Source§fn is_strictly_positive(&self) -> bool
fn is_strictly_positive(&self) -> bool
Is > 0 Read more
Source§fn is_strictly_negative(&self) -> bool
fn is_strictly_negative(&self) -> bool
Is < 0 Read more