#[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) -> ColorRgbaOf<T>
pub const fn rgba(red: T, green: T, blue: T, alpha: T) -> ColorRgbaOf<T>
pub const fn rgb(red: T, green: T, blue: T) -> ColorRgbaOf<T>where
T: RangeDefault,
pub const fn gray(rgb: T) -> ColorRgbaOf<T>where
T: RangeDefault + Copy,
pub const fn splat_rgba(rgba: T) -> ColorRgbaOf<T>where
T: Copy,
Sourcepub const fn splat_rgb(rgb: T) -> ColorRgbaOf<T>where
T: Copy + RangeDefault,
pub const fn splat_rgb(rgb: T) -> ColorRgbaOf<T>where
T: Copy + RangeDefault,
Alpha is at max
pub const fn splat_rgb_with_a(rgb: T, a: T) -> ColorRgbaOf<T>where
T: 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]
Sourcepub fn with_r(self, r: T) -> ColorRgbaOf<T>where
T: Copy,
pub fn with_r(self, r: T) -> ColorRgbaOf<T>where
T: Copy,
Red
Sourcepub fn set_r(&mut self, r: T) -> &mut ColorRgbaOf<T>
pub fn set_r(&mut self, r: T) -> &mut ColorRgbaOf<T>
Red
Sourcepub fn with_g(self, g: T) -> ColorRgbaOf<T>where
T: Copy,
pub fn with_g(self, g: T) -> ColorRgbaOf<T>where
T: Copy,
Green
Sourcepub fn set_g(&mut self, g: T) -> &mut ColorRgbaOf<T>
pub fn set_g(&mut self, g: T) -> &mut ColorRgbaOf<T>
Green
Sourcepub fn with_b(self, b: T) -> ColorRgbaOf<T>where
T: Copy,
pub fn with_b(self, b: T) -> ColorRgbaOf<T>where
T: Copy,
Blue
Sourcepub fn set_b(&mut self, b: T) -> &mut ColorRgbaOf<T>
pub fn set_b(&mut self, b: T) -> &mut ColorRgbaOf<T>
Blue
Sourcepub fn with_a(self, a: T) -> ColorRgbaOf<T>where
T: Copy,
pub fn with_a(self, a: T) -> ColorRgbaOf<T>where
T: Copy,
Alpha
Sourcepub fn set_a(&mut self, a: T) -> &mut ColorRgbaOf<T>
pub fn set_a(&mut self, a: T) -> &mut ColorRgbaOf<T>
Alpha
Trait Implementations§
Source§impl<T> Abs for ColorRgbaOf<T>where
T: Abs,
impl<T> Abs for ColorRgbaOf<T>where
T: Abs,
Source§impl<T> Add for ColorRgbaOf<T>where
T: Add,
impl<T> Add for ColorRgbaOf<T>where
T: Add,
Source§type Output = ColorRgbaOf<<T as Add>::Output>
type Output = ColorRgbaOf<<T as Add>::Output>
The resulting type after applying the
+ operator.Source§fn add(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as Add>::Output
fn add(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as Add>::Output
Performs the
+ operation. Read moreSource§impl<T> Add<T> for ColorRgbaOf<T>
impl<T> Add<T> for ColorRgbaOf<T>
Source§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: ColorRgbaOf<T>)
fn add_assign(&mut self, rhs: ColorRgbaOf<T>)
Performs the
+= operation. Read moreSource§impl<T> AddAssign<&ColorRgbaOf<T>> for ColorRgbaOf<T>
impl<T> AddAssign<&ColorRgbaOf<T>> for ColorRgbaOf<T>
Source§fn add_assign(&mut self, rhs: &ColorRgbaOf<T>)
fn add_assign(&mut self, rhs: &ColorRgbaOf<T>)
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 for ColorRgbaOf<T>where
T: BitAnd,
impl<T> BitAnd for ColorRgbaOf<T>where
T: BitAnd,
Source§type Output = ColorRgbaOf<<T as BitAnd>::Output>
type Output = ColorRgbaOf<<T as BitAnd>::Output>
The resulting type after applying the
& operator.Source§fn bitand(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as BitAnd>::Output
fn bitand(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as BitAnd>::Output
Performs the
& operation. Read moreSource§impl<T> BitAnd<T> for ColorRgbaOf<T>
impl<T> BitAnd<T> for ColorRgbaOf<T>
Source§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: ColorRgbaOf<T>)
fn bitand_assign(&mut self, rhs: ColorRgbaOf<T>)
Performs the
&= operation. Read moreSource§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: &ColorRgbaOf<T>)
fn bitand_assign(&mut self, rhs: &ColorRgbaOf<T>)
Performs the
&= operation. Read moreSource§impl<T> BitOr for ColorRgbaOf<T>where
T: BitOr,
impl<T> BitOr for ColorRgbaOf<T>where
T: BitOr,
Source§type Output = ColorRgbaOf<<T as BitOr>::Output>
type Output = ColorRgbaOf<<T as BitOr>::Output>
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as BitOr>::Output
fn bitor(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as BitOr>::Output
Performs the
| operation. Read moreSource§impl<T> BitOr<T> for ColorRgbaOf<T>
impl<T> BitOr<T> for ColorRgbaOf<T>
Source§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: ColorRgbaOf<T>)
fn bitor_assign(&mut self, rhs: ColorRgbaOf<T>)
Performs the
|= operation. Read moreSource§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: &ColorRgbaOf<T>)
fn bitor_assign(&mut self, rhs: &ColorRgbaOf<T>)
Performs the
|= operation. Read moreSource§impl<T, Dest> CastIntoComposite<Dest> for ColorRgbaOf<T>where
T: CastIntoComposite<Dest>,
impl<T, Dest> CastIntoComposite<Dest> for ColorRgbaOf<T>where
T: CastIntoComposite<Dest>,
type Output = ColorRgbaOf<<T as CastIntoComposite<Dest>>::Output>
Source§fn cast_into_composite(
self,
) -> <ColorRgbaOf<T> as CastIntoComposite<Dest>>::Output
fn cast_into_composite( self, ) -> <ColorRgbaOf<T> as CastIntoComposite<Dest>>::Output
Might lose some precision.
Same semantics as the as keyword:
4f32 as u64, but can be used in a generic way.Source§impl<T, Dest> CastRangeIntoComposite<Dest> for ColorRgbaOf<T>where
T: CastRangeIntoComposite<Dest>,
impl<T, Dest> CastRangeIntoComposite<Dest> for ColorRgbaOf<T>where
T: CastRangeIntoComposite<Dest>,
type Output = ColorRgbaOf<<T as CastRangeIntoComposite<Dest>>::Output>
Source§fn cast_range_into_composite(
self,
) -> <ColorRgbaOf<T> as CastRangeIntoComposite<Dest>>::Output
fn cast_range_into_composite( self, ) -> <ColorRgbaOf<T> as CastRangeIntoComposite<Dest>>::Output
Might lose some precision.
Source§impl<T> Clone for ColorRgbaOf<T>where
T: Clone,
impl<T> Clone for ColorRgbaOf<T>where
T: Clone,
Source§fn clone(&self) -> ColorRgbaOf<T>
fn clone(&self) -> ColorRgbaOf<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T> Copy for ColorRgbaOf<T>where
T: Copy,
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: Primitive,
impl<T> Default for ColorRgbaOf<T>where
T: Primitive,
Source§fn default() -> ColorRgbaOf<T>
fn default() -> ColorRgbaOf<T>
Returns the “default value” for a type. Read more
Source§impl<'de, T> Deserialize<'de> for ColorRgbaOf<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ColorRgbaOf<T>where
T: Deserialize<'de>,
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ColorRgbaOf<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ColorRgbaOf<T>, <D as Deserializer<'de>>::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 for ColorRgbaOf<T>where
T: Div,
impl<T> Div for ColorRgbaOf<T>where
T: Div,
Source§type Output = ColorRgbaOf<<T as Div>::Output>
type Output = ColorRgbaOf<<T as Div>::Output>
The resulting type after applying the
/ operator.Source§fn div(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as Div>::Output
fn div(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as Div>::Output
Performs the
/ operation. Read moreSource§impl<T> Div<T> for ColorRgbaOf<T>
impl<T> Div<T> for ColorRgbaOf<T>
Source§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: ColorRgbaOf<T>)
fn div_assign(&mut self, rhs: ColorRgbaOf<T>)
Performs the
/= operation. Read moreSource§impl<T> DivAssign<&ColorRgbaOf<T>> for ColorRgbaOf<T>
impl<T> DivAssign<&ColorRgbaOf<T>> for ColorRgbaOf<T>
Source§fn div_assign(&mut self, rhs: &ColorRgbaOf<T>)
fn div_assign(&mut self, rhs: &ColorRgbaOf<T>)
Performs the
/= operation. Read moreimpl<T> Eq for ColorRgbaOf<T>where
T: Eq,
Source§impl<T> From<(T, T, T)> for ColorRgbaOf<T>where
T: RangeDefault,
impl<T> From<(T, T, T)> for ColorRgbaOf<T>where
T: RangeDefault,
Source§fn from(value: (T, T, T)) -> ColorRgbaOf<T>
fn from(value: (T, T, T)) -> ColorRgbaOf<T>
Converts to this type from the input type.
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)) -> ColorRgbaOf<T>
fn from(value: (T, T, T, T)) -> ColorRgbaOf<T>
Converts to this type from the input type.
Source§impl<T> From<ColorRgbaOf<T>> for Vector<T, 4>
impl<T> From<ColorRgbaOf<T>> for Vector<T, 4>
Source§fn from(value: ColorRgbaOf<T>) -> Vector<T, 4>
fn from(value: ColorRgbaOf<T>) -> Vector<T, 4>
Converts to this type from the input type.
Source§impl<T> From<ColorRgbaOf<T>> for Vector<T, 3>
impl<T> From<ColorRgbaOf<T>> for Vector<T, 3>
Source§fn from(value: ColorRgbaOf<T>) -> Vector<T, 3>
fn from(value: ColorRgbaOf<T>) -> Vector<T, 3>
Converts to this type from the input type.
Source§impl<T> From<Vector<T, 3>> for ColorRgbaOf<T>where
T: RangeDefault,
impl<T> From<Vector<T, 3>> for ColorRgbaOf<T>where
T: RangeDefault,
Source§fn from(value: Vector<T, 3>) -> ColorRgbaOf<T>
fn from(value: Vector<T, 3>) -> ColorRgbaOf<T>
Converts to this type from the input type.
Source§impl<T> From<Vector<T, 4>> for ColorRgbaOf<T>
impl<T> From<Vector<T, 4>> for ColorRgbaOf<T>
Source§fn from(value: Vector<T, 4>) -> ColorRgbaOf<T>
fn from(value: Vector<T, 4>) -> ColorRgbaOf<T>
Converts to this type from the input type.
Source§impl<T> From<[T; 3]> for ColorRgbaOf<T>where
T: RangeDefault,
impl<T> From<[T; 3]> for ColorRgbaOf<T>where
T: RangeDefault,
Source§fn from(value: [T; 3]) -> ColorRgbaOf<T>
fn from(value: [T; 3]) -> ColorRgbaOf<T>
Converts to this type from the input type.
Source§impl<T> From<[T; 4]> for ColorRgbaOf<T>
impl<T> From<[T; 4]> for ColorRgbaOf<T>
Source§fn from(value: [T; 4]) -> ColorRgbaOf<T>
fn from(value: [T; 4]) -> ColorRgbaOf<T>
Converts to this type from the input type.
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<&<ColorRgbaOf<T> as Get<Idx>>::Output, ()>
fn get(&self, index: Idx) -> Option<&<ColorRgbaOf<T> as Get<Idx>>::Output>
unsafe fn get_unchecked( &self, index: Idx, ) -> &<ColorRgbaOf<T> as Get<Idx>>::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 <ColorRgbaOf<T> as Get<Idx>>::Output; N], ()>
fn try_get_many_mut<const N: usize>( &mut self, indices: [Idx; N], ) -> Result<[&mut <ColorRgbaOf<T> as Get<Idx>>::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 <ColorRgbaOf<T> as Get<Idx>>::Output; N]
unsafe fn get_many_unchecked_mut<const N: usize>( &mut self, indices: [Idx; N], ) -> [&mut <ColorRgbaOf<T> as Get<Idx>>::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 <ColorRgbaOf<T> as Get<Idx>>::Output, ()>
fn get_mut( &mut self, index: Idx, ) -> Option<&mut <ColorRgbaOf<T> as Get<Idx>>::Output>
unsafe fn get_unchecked_mut( &mut self, index: Idx, ) -> &mut <ColorRgbaOf<T> as Get<Idx>>::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>
impl<T> Half for ColorRgbaOf<T>
Source§impl<T> Hash for ColorRgbaOf<T>where
T: Hash,
impl<T> Hash for ColorRgbaOf<T>where
T: Hash,
Source§impl<T> IColor<T> for ColorRgbaOf<T>where
T: Primitive,
impl<T> IColor<T> for ColorRgbaOf<T>where
T: Primitive,
const TRANSPARENT: ColorRgbaOf<T>
Source§const BLACK: ColorRgbaOf<T>
const BLACK: ColorRgbaOf<T>
#000000 Read more
Source§const GREY: ColorRgbaOf<T>
const GREY: ColorRgbaOf<T>
#777777 Read more
Source§const WHITE: ColorRgbaOf<T>
const WHITE: ColorRgbaOf<T>
#FFFFFF Read more
Source§const RED: ColorRgbaOf<T>
const RED: ColorRgbaOf<T>
#FF0000 Read more
Source§const GREEN: ColorRgbaOf<T>
const GREEN: ColorRgbaOf<T>
#00FF00 Read more
Source§const BLUE: ColorRgbaOf<T>
const BLUE: ColorRgbaOf<T>
#0000FF Read more
Source§const CYAN: ColorRgbaOf<T>
const CYAN: ColorRgbaOf<T>
#00FFFF Read more
Source§const MAGENTA: ColorRgbaOf<T>
const MAGENTA: ColorRgbaOf<T>
#FF00FF Read more
Source§const YELLOW: ColorRgbaOf<T>
const YELLOW: ColorRgbaOf<T>
#FFFF00 Read more
Source§const SPRING: ColorRgbaOf<T>
const SPRING: ColorRgbaOf<T>
#00FF7F
Source§const AZURE: ColorRgbaOf<T>
const AZURE: ColorRgbaOf<T>
#007FFF
Source§const VIOLET: ColorRgbaOf<T>
const VIOLET: ColorRgbaOf<T>
#7F00FF
Source§const ROSE: ColorRgbaOf<T>
const ROSE: ColorRgbaOf<T>
#FF007F
Source§const ORANGE: ColorRgbaOf<T>
const ORANGE: ColorRgbaOf<T>
#FF7F00
Source§const LIME: ColorRgbaOf<T>
const LIME: ColorRgbaOf<T>
#7FFF00
Source§const CANARY: ColorRgbaOf<T>
const CANARY: ColorRgbaOf<T>
#FFFF7F
Source§const PINK: ColorRgbaOf<T>
const PINK: ColorRgbaOf<T>
#FF7FFF
Source§const GLACE: ColorRgbaOf<T>
const GLACE: ColorRgbaOf<T>
#7FFFFF
fn to_rgba_of<T2>(self) -> ColorRgbaOf<T2>where
T2: Primitive + CastRangeFrom<T>,
fn to_hsla_of<T2>(self) -> ColorHslaOf<T2>where
T2: Float + CastRangeFrom<T>,
fn rgba_from_hex(hex: u32) -> ColorRgbaOf<T>where
T: CastRangeFrom<u8>,
fn rgba_from_array(rgba: [u8; 4]) -> ColorRgbaOf<T>where
T: CastRangeFrom<u8>,
fn rgba_from_u8(r: u8, g: u8, b: u8, a: u8) -> ColorRgbaOf<T>where
T: CastRangeFrom<u8>,
Source§fn to_rgba_u8_hex_string(self) -> String
fn to_rgba_u8_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<T> IntoIterator for ColorRgbaOf<T>where
[T; 4]: IntoIterator,
impl<T> IntoIterator for ColorRgbaOf<T>where
[T; 4]: IntoIterator,
Source§type IntoIter = <[T; 4] as IntoIterator>::IntoIter
type IntoIter = <[T; 4] as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <ColorRgbaOf<T> as IntoIterator>::IntoIter
fn into_iter(self) -> <ColorRgbaOf<T> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
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§type IntoIter = <&'a [T; 4] as IntoIterator>::IntoIter
type IntoIter = <&'a [T; 4] as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <&'a ColorRgbaOf<T> as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a ColorRgbaOf<T> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
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§type Item = <&'a mut [T; 4] as IntoIterator>::Item
type Item = <&'a mut [T; 4] as IntoIterator>::Item
The type of the elements being iterated over.
Source§type IntoIter = <&'a mut [T; 4] as IntoIterator>::IntoIter
type IntoIter = <&'a mut [T; 4] as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <&'a mut ColorRgbaOf<T> as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a mut ColorRgbaOf<T> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Source§impl<T> IoLoad for ColorRgbaOf<T>where
T: IoLoad,
Available on crate feature hexga_io only.
impl<T> IoLoad for ColorRgbaOf<T>where
T: IoLoad,
Available on crate feature
hexga_io only.Source§fn load_own_extensions() -> impl Iterator<Item = &'static str>
fn load_own_extensions() -> impl Iterator<Item = &'static str>
fn load_from_bytes_with_own_extension( data: &[u8], path: &str, extension: &str, ) -> Result<Self, IoError>
fn load_from_bytes_with_own_extension_pathless( data: &[u8], extension: &str, ) -> Result<Self, IoErrorKind>
const CAN_BE_LOADED_FROM_TEXT: bool = false
fn load_from_str_with_own_extension( data: &str, path: &str, extension: &str, ) -> Result<Self, IoError>
fn load_from_str_with_own_extension_pathless( data: &str, extension: &str, ) -> Result<Self, IoErrorKind>
Source§fn can_open_own_extension(extension: &str) -> bool
fn can_open_own_extension(extension: &str) -> bool
Don’t include the markup language extension like
json or ronSource§fn load_extensions() -> impl Iterator<Item = &'static str>
fn load_extensions() -> impl Iterator<Item = &'static str>
Also include the markup language extension like
json or ronSource§fn can_open_extension(extension: &str) -> bool
fn can_open_extension(extension: &str) -> bool
Also include the markup language extension like
json or ronfn load_from<Fs>(path: &str, fs: &mut Fs) -> Result<Self, IoError>where
Fs: IoFsRead,
fn load_from_with_extension<Fs>(
path: &str,
extension: &str,
fs: &mut Fs,
) -> Result<Self, IoError>where
Fs: IoFsRead,
Source§impl<T> IoSave for ColorRgbaOf<T>where
T: IoSave,
Available on crate feature hexga_io only.
impl<T> IoSave for ColorRgbaOf<T>where
T: IoSave,
Available on crate feature
hexga_io only.Source§fn save_own_extensions() -> impl Iterator<Item = &'static str>
fn save_own_extensions() -> impl Iterator<Item = &'static str>
fn save_to_with_own_extension<W, Fs>( &self, path: &str, extension: &str, w: W, fs: &mut Fs, ) -> Result<(), IoError>
fn save_to_with_own_extension_pathless<W, Fs>( &self, extension: &str, w: W, fs: &mut Fs, ) -> Result<(), IoErrorKind>
Source§fn save_default_extension() -> Option<&'static str>
fn save_default_extension() -> Option<&'static str>
When saving, if the extension is missing, the file will use this extension by default
Source§fn can_save_own_extension(extension: &str) -> bool
fn can_save_own_extension(extension: &str) -> bool
Don’t include the markup language extension like
json or ronSource§fn save_extensions() -> impl Iterator<Item = &'static str>
fn save_extensions() -> impl Iterator<Item = &'static str>
Also include the markup language extension like
json or ronSource§fn can_save_extension(extension: &str) -> bool
fn can_save_extension(extension: &str) -> bool
Also include the markup language extension like
json or ronfn save_to<Fs>(&self, path: &str, fs: &mut Fs) -> Result<(), IoError>where
Fs: IoFsWrite,
fn save_to_with_extension<Fs>(
&self,
path: &str,
extension: &str,
fs: &mut Fs,
) -> Result<(), IoError>where
Fs: IoFsWrite,
fn save_with_reader<W, Fs>( &self, path: &str, w: W, fs: &mut Fs, ) -> Result<(), IoError>
fn save_with_reader_and_extension<W, Fs>( &self, path: &str, extension: &str, w: W, fs: &mut Fs, ) -> Result<(), IoError>
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>
impl<T> MaxValue for ColorRgbaOf<T>
const MAX: ColorRgbaOf<T>
fn is_max_value(&self) -> boolwhere
Self: PartialEq,
fn is_non_max_value(&self) -> boolwhere
Self: PartialEq,
Source§impl<T> MinValue for ColorRgbaOf<T>
impl<T> MinValue for ColorRgbaOf<T>
const MIN: ColorRgbaOf<T>
fn is_min_value(&self) -> boolwhere
Self: PartialEq,
fn is_not_min_value(&self) -> boolwhere
Self: PartialEq,
Source§impl<T> MinusOne for ColorRgbaOf<T>
impl<T> MinusOne for ColorRgbaOf<T>
Source§impl<T> Mul for ColorRgbaOf<T>where
T: Mul,
impl<T> Mul for ColorRgbaOf<T>where
T: Mul,
Source§type Output = ColorRgbaOf<<T as Mul>::Output>
type Output = ColorRgbaOf<<T as Mul>::Output>
The resulting type after applying the
* operator.Source§fn mul(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as Mul>::Output
fn mul(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as Mul>::Output
Performs the
* operation. Read moreSource§impl<T> Mul<T> for ColorRgbaOf<T>
impl<T> Mul<T> for ColorRgbaOf<T>
Source§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: ColorRgbaOf<T>)
fn mul_assign(&mut self, rhs: ColorRgbaOf<T>)
Performs the
*= operation. Read moreSource§impl<T> MulAssign<&ColorRgbaOf<T>> for ColorRgbaOf<T>
impl<T> MulAssign<&ColorRgbaOf<T>> for ColorRgbaOf<T>
Source§fn mul_assign(&mut self, rhs: &ColorRgbaOf<T>)
fn mul_assign(&mut self, rhs: &ColorRgbaOf<T>)
Performs the
*= operation. Read moreSource§impl<T> NaNValue for ColorRgbaOf<T>
impl<T> NaNValue for ColorRgbaOf<T>
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>
impl<T> One for ColorRgbaOf<T>
Source§impl<T> Ord for ColorRgbaOf<T>where
T: Ord,
impl<T> Ord for ColorRgbaOf<T>where
T: Ord,
Source§fn cmp(&self, rhs: &ColorRgbaOf<T>) -> Ordering
fn cmp(&self, rhs: &ColorRgbaOf<T>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
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> Product for ColorRgbaOf<T>
impl<T> Product for ColorRgbaOf<T>
Source§fn product<I>(iter: I) -> ColorRgbaOf<T>where
I: Iterator<Item = ColorRgbaOf<T>>,
fn product<I>(iter: I) -> ColorRgbaOf<T>where
I: Iterator<Item = ColorRgbaOf<T>>,
Takes an iterator and generates
Self from the elements by multiplying
the items.Source§impl<T> Rem for ColorRgbaOf<T>where
T: Rem,
impl<T> Rem for ColorRgbaOf<T>where
T: Rem,
Source§type Output = ColorRgbaOf<<T as Rem>::Output>
type Output = ColorRgbaOf<<T as Rem>::Output>
The resulting type after applying the
% operator.Source§fn rem(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as Rem>::Output
fn rem(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as Rem>::Output
Performs the
% operation. Read moreSource§impl<T> Rem<T> for ColorRgbaOf<T>
impl<T> Rem<T> for ColorRgbaOf<T>
Source§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: ColorRgbaOf<T>)
fn rem_assign(&mut self, rhs: ColorRgbaOf<T>)
Performs the
%= operation. Read moreSource§impl<T> RemAssign<&ColorRgbaOf<T>> for ColorRgbaOf<T>
impl<T> RemAssign<&ColorRgbaOf<T>> for ColorRgbaOf<T>
Source§fn rem_assign(&mut self, rhs: &ColorRgbaOf<T>)
fn rem_assign(&mut self, rhs: &ColorRgbaOf<T>)
Performs the
%= operation. Read moreSource§impl<T> Serialize for ColorRgbaOf<T>where
T: Serialize,
Available on crate feature serde only.
impl<T> Serialize for ColorRgbaOf<T>where
T: Serialize,
Available on crate feature
serde only.Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<T> Shl for ColorRgbaOf<T>where
T: Shl,
impl<T> Shl for ColorRgbaOf<T>where
T: Shl,
Source§type Output = ColorRgbaOf<<T as Shl>::Output>
type Output = ColorRgbaOf<<T as Shl>::Output>
The resulting type after applying the
<< operator.Source§fn shl(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as Shl>::Output
fn shl(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as Shl>::Output
Performs the
<< operation. Read moreSource§impl<T> Shl<T> for ColorRgbaOf<T>
impl<T> Shl<T> for ColorRgbaOf<T>
Source§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: ColorRgbaOf<T>)
fn shl_assign(&mut self, rhs: ColorRgbaOf<T>)
Performs the
<<= operation. Read moreSource§impl<T> ShlAssign<&ColorRgbaOf<T>> for ColorRgbaOf<T>
impl<T> ShlAssign<&ColorRgbaOf<T>> for ColorRgbaOf<T>
Source§fn shl_assign(&mut self, rhs: &ColorRgbaOf<T>)
fn shl_assign(&mut self, rhs: &ColorRgbaOf<T>)
Performs the
<<= operation. Read moreSource§impl<T> Shr for ColorRgbaOf<T>where
T: Shr,
impl<T> Shr for ColorRgbaOf<T>where
T: Shr,
Source§type Output = ColorRgbaOf<<T as Shr>::Output>
type Output = ColorRgbaOf<<T as Shr>::Output>
The resulting type after applying the
>> operator.Source§fn shr(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as Shr>::Output
fn shr(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as Shr>::Output
Performs the
>> operation. Read moreSource§impl<T> Shr<T> for ColorRgbaOf<T>
impl<T> Shr<T> for ColorRgbaOf<T>
Source§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: ColorRgbaOf<T>)
fn shr_assign(&mut self, rhs: ColorRgbaOf<T>)
Performs the
>>= operation. Read moreSource§impl<T> ShrAssign<&ColorRgbaOf<T>> for ColorRgbaOf<T>
impl<T> ShrAssign<&ColorRgbaOf<T>> for ColorRgbaOf<T>
Source§fn shr_assign(&mut self, rhs: &ColorRgbaOf<T>)
fn shr_assign(&mut self, rhs: &ColorRgbaOf<T>)
Performs the
>>= operation. Read moreSource§impl<T> Sub for ColorRgbaOf<T>where
T: Sub,
impl<T> Sub for ColorRgbaOf<T>where
T: Sub,
Source§type Output = ColorRgbaOf<<T as Sub>::Output>
type Output = ColorRgbaOf<<T as Sub>::Output>
The resulting type after applying the
- operator.Source§fn sub(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as Sub>::Output
fn sub(self, rhs: ColorRgbaOf<T>) -> <ColorRgbaOf<T> as Sub>::Output
Performs the
- operation. Read moreSource§impl<T> Sub<T> for ColorRgbaOf<T>
impl<T> Sub<T> for ColorRgbaOf<T>
Source§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: ColorRgbaOf<T>)
fn sub_assign(&mut self, rhs: ColorRgbaOf<T>)
Performs the
-= operation. Read moreSource§impl<T> SubAssign<&ColorRgbaOf<T>> for ColorRgbaOf<T>
impl<T> SubAssign<&ColorRgbaOf<T>> for ColorRgbaOf<T>
Source§fn sub_assign(&mut self, rhs: &ColorRgbaOf<T>)
fn sub_assign(&mut self, rhs: &ColorRgbaOf<T>)
Performs the
-= operation. Read moreSource§impl<T> Sum for ColorRgbaOf<T>
impl<T> Sum for ColorRgbaOf<T>
Source§fn sum<I>(iter: I) -> ColorRgbaOf<T>where
I: Iterator<Item = ColorRgbaOf<T>>,
fn sum<I>(iter: I) -> ColorRgbaOf<T>where
I: Iterator<Item = ColorRgbaOf<T>>,
Takes an iterator and generates
Self from the elements by “summing up”
the items.Source§impl<T> ToColorComposite for ColorRgbaOf<T>where
T: Primitive,
impl<T> ToColorComposite for ColorRgbaOf<T>where
T: Primitive,
const COLOR_INSIDE: ColorKind
type RgbaF32 = ColorRgbaOf<f32>
type RgbaF64 = ColorRgbaOf<f64>
type RgbaU8 = ColorRgbaOf<u8>
type RgbaU16 = ColorRgbaOf<u16>
type RgbaBool = ColorRgbaOf<bool>
type HslaF32 = ColorHslaOf<f32>
type HslaF64 = ColorHslaOf<f64>
fn to_rgba_f32(&self) -> <ColorRgbaOf<T> as ToColorComposite>::RgbaF32
fn to_rgba_f64(&self) -> <ColorRgbaOf<T> as ToColorComposite>::RgbaF64
fn to_rgba_u8(&self) -> <ColorRgbaOf<T> as ToColorComposite>::RgbaU8
fn to_rgba_u16(&self) -> <ColorRgbaOf<T> as ToColorComposite>::RgbaU16
fn to_rgba_bool(&self) -> <ColorRgbaOf<T> as ToColorComposite>::RgbaBool
fn to_hsla_f32(&self) -> <ColorRgbaOf<T> as ToColorComposite>::HslaF32
fn to_hsla_f64(&self) -> <ColorRgbaOf<T> as ToColorComposite>::HslaF64
fn to_color(&self) -> Self::RgbaF32
fn to_color_u8(&self) -> Self::RgbaU8
fn to_rgba(&self) -> Self::RgbaF32
fn to_rgba_mask(&self) -> Self::RgbaBool
fn to_hsla(&self) -> Self::HslaF32
Source§impl<T> ToSigned for ColorRgbaOf<T>where
T: ToSigned,
impl<T> ToSigned for ColorRgbaOf<T>where
T: ToSigned,
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) -> <ColorRgbaOf<T> as ToUnsigned>::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>
impl<T> Zero for ColorRgbaOf<T>
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> UnsafeUnpin for ColorRgbaOf<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ColorRgbaOf<T>where
T: UnwindSafe,
Blanket Implementations§
impl<T> ArithmeticNegative for Twhere
T: Neg<Output = T>,
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 into_array1_filled(self, fill: T) -> [T; 1]where
T: Clone,
fn into_array1_filled(self, fill: T) -> [T; 1]where
T: Clone,
Fill non existing component with the Cloned given value
Source§fn into_array2_filled(self, fill: T) -> [T; 2]where
T: Clone,
fn into_array2_filled(self, fill: T) -> [T; 2]where
T: Clone,
Fill non existing component with the Cloned given value
Source§fn into_array3_filled(self, fill: T) -> [T; 3]where
T: Clone,
fn into_array3_filled(self, fill: T) -> [T; 3]where
T: Clone,
Fill non existing component with the Cloned given value
Source§fn into_array4_filled(self, fill: T) -> [T; 4]where
T: Clone,
fn into_array4_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: i32) -> Vector<i32, 1>
fn to_point1_filled(self, fill: i32) -> Vector<i32, 1>
Fill non existing component with the given value
Source§fn to_point2_filled(self, fill: i32) -> Vector<i32, 2>
fn to_point2_filled(self, fill: i32) -> Vector<i32, 2>
Fill non existing component with the given value
Source§fn to_point3_filled(self, fill: i32) -> Vector<i32, 3>
fn to_point3_filled(self, fill: i32) -> Vector<i32, 3>
Fill non existing component with the given value
Source§fn to_point4_filled(self, fill: i32) -> Vector<i32, 4>
fn to_point4_filled(self, fill: i32) -> Vector<i32, 4>
Fill non existing component with the given value
Source§fn to_vec1_filled(self, fill: f32) -> Vector<f32, 1>
fn to_vec1_filled(self, fill: f32) -> Vector<f32, 1>
Fill non existing component with the given value
Source§fn to_vec2_filled(self, fill: f32) -> Vector<f32, 2>
fn to_vec2_filled(self, fill: f32) -> Vector<f32, 2>
Fill non existing component with the given value
Source§fn to_vec3_filled(self, fill: f32) -> Vector<f32, 3>
fn to_vec3_filled(self, fill: f32) -> Vector<f32, 3>
Fill non existing component with the given value
Source§fn to_vec4_filled(self, fill: f32) -> Vector<f32, 4>
fn to_vec4_filled(self, fill: f32) -> Vector<f32, 4>
Fill non existing component with the given value
Source§fn to_vector1_filled(self, fill: T) -> Vector<T, 1>where
T: Clone,
fn to_vector1_filled(self, fill: T) -> Vector<T, 1>where
T: Clone,
Fill non existing component with the given value
Source§fn to_vector2_filled(self, fill: T) -> Vector<T, 2>where
T: Clone,
fn to_vector2_filled(self, fill: T) -> Vector<T, 2>where
T: Clone,
Fill non existing component with the given value
Source§fn to_vector3_filled(self, fill: T) -> Vector<T, 3>where
T: Clone,
fn to_vector3_filled(self, fill: T) -> Vector<T, 3>where
T: Clone,
Fill non existing component with the given value
Source§fn to_vector4_filled(self, fill: T) -> Vector<T, 4>where
T: Clone,
fn to_vector4_filled(self, fill: T) -> Vector<T, 4>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, T2> CastInto<T> for T2where
T2: CastIntoComposite<T, Output = T>,
impl<T, T2> CastInto<T> for T2where
T2: CastIntoComposite<T, Output = T>,
Source§impl<Src, Dest> CastRangeFrom<Dest> for Srcwhere
Dest: CastRangeInto<Src>,
impl<Src, Dest> CastRangeFrom<Dest> for Srcwhere
Dest: CastRangeInto<Src>,
fn cast_range_from(value: Dest) -> Src
Source§impl<T, T2> CastRangeInto<T> for T2where
T2: CastRangeIntoComposite<T, Output = T>,
impl<T, T2> CastRangeInto<T> for T2where
T2: CastRangeIntoComposite<T, Output = T>,
fn cast_range_into(self) -> Self::Output
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<I, T> CollectExtension<T> for Iwhere
I: IntoIterator<Item = T>,
impl<I, T> CollectExtension<T> for Iwhere
I: IntoIterator<Item = T>,
fn to_vec(self) -> Vec<T>
fn to_linkedlist(self) -> LinkedList<T>
fn to_vecdeque(self) -> VecDeque<T>
fn to_hashset(self) -> HashSet<T>
fn to_btreeset(self) -> BTreeSet<T>where
T: Ord,
Source§impl<I, T1, T2> CollectMapExtension<T1, T2> for Iwhere
I: IntoIterator<Item = (T1, T2)>,
impl<I, T1, T2> CollectMapExtension<T1, T2> for Iwhere
I: IntoIterator<Item = (T1, T2)>,
Source§impl<I, T1> CollectToGenVecExtension<T1> for Iwhere
I: IntoIterator<Item = T1>,
impl<I, T1> CollectToGenVecExtension<T1> for Iwhere
I: IntoIterator<Item = T1>,
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> DefaultExtension for T
impl<T> DefaultExtension for T
fn is_default(&self) -> bool
fn is_not_default(&self) -> bool
Source§impl<T> DefaultIsTripleUnderscore for Twhere
T: Default,
impl<T> DefaultIsTripleUnderscore for Twhere
T: Default,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ExtensionToArray3<T> for C
impl<C, T> ExtensionToArray3<T> for C
Source§impl<C, T> ExtensionToArray4<T> for C
impl<C, T> ExtensionToArray4<T> for C
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> LoadToDisk for T
impl<T> LoadToDisk for T
impl<T, Rhs> NumAssignOps<Rhs> for T
impl<T, Rhs, Output> NumOps<Rhs, Output> for T
impl<T> Number for T
impl<T> NumberArithmetic for T
impl<T> NumberNegative for T
Source§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