#[repr(C)]pub struct RgbaOf<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> RgbaOf<T>
impl<T> RgbaOf<T>
pub const LEN: usize = 4usize
pub const fn from_array(array: [T; 4]) -> RgbaOf<T>
pub const fn to_array(self) -> [T; 4]
pub const fn array(&self) -> &[T; 4]
pub const fn array_mut(&mut self) -> &mut [T; 4]
Sourcepub fn max(self, other: RgbaOf<T>) -> RgbaOf<T>
pub fn max(self, other: RgbaOf<T>) -> RgbaOf<T>
Max function in a component way
Can cause a panic for grid if the size mismatch
Sourcepub fn min(self, other: RgbaOf<T>) -> RgbaOf<T>
pub fn min(self, other: RgbaOf<T>) -> RgbaOf<T>
Min function in a component way
Can cause a panic for grid if the size mismatch
Sourcepub fn abs(self) -> <RgbaOf<T> as Abs>::Output
pub fn abs(self) -> <RgbaOf<T> as Abs>::Output
Absolute value in a component way.
§Overflow behavior
The absolute value of iX::MIN cannot be represented as an iX, and attempting to calculate it will cause an overflow.
This means that code in debug mode will trigger a panic on this case and optimized code will return iX::MIN without a panic.
Can cause a panic for grid if the size mismatch
Sourcepub fn mix<C>(self, other: RgbaOf<T>, coef: C) -> RgbaOf<T>
pub fn mix<C>(self, other: RgbaOf<T>, coef: C) -> RgbaOf<T>
Mix function in a component way
The coef is clamped between 0.0..1.
- => self,
- => dest.
Can cause a panic for grid if the size mismatch
Sourcepub fn mix_unchecked<C>(self, other: RgbaOf<T>, coef: C) -> RgbaOf<T>
pub fn mix_unchecked<C>(self, other: RgbaOf<T>, coef: C) -> RgbaOf<T>
Mix function in a component way
The coef is not clamped between 0.0..1.
- => self,
- => dest.
Can cause a panic for grid if the size mismatch
Source§impl<T> RgbaOf<T>
impl<T> RgbaOf<T>
pub const fn new(red: T, green: T, blue: T, alpha: T) -> RgbaOf<T>
pub const fn rgba(red: T, green: T, blue: T, alpha: T) -> RgbaOf<T>
Sourcepub const fn rgb(red: T, green: T, blue: T) -> RgbaOf<T>where
T: RangeDefault,
pub const fn rgb(red: T, green: T, blue: T) -> RgbaOf<T>where
T: RangeDefault,
Alpha is at max
Sourcepub const fn gray(rgb: T) -> RgbaOf<T>where
T: RangeDefault + Copy,
pub const fn gray(rgb: T) -> RgbaOf<T>where
T: RangeDefault + Copy,
Alpha is at max
pub const fn splat_rgba(rgba: T) -> RgbaOf<T>where
T: Copy,
Sourcepub const fn splat_rgb(rgb: T) -> RgbaOf<T>where
T: Copy + RangeDefault,
pub const fn splat_rgb(rgb: T) -> RgbaOf<T>where
T: Copy + RangeDefault,
Alpha is at max
pub const fn splat_rgb_with_a(rgb: T, a: T) -> RgbaOf<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]
Source§impl<T> RgbaOf<T>where
T: Primitive,
impl<T> RgbaOf<T>where
T: Primitive,
pub fn to_rgba_of<R>(self) -> RgbaOf<R>where
R: Primitive + CastRangeFrom<T>,
pub fn to_hsla_of<R>(self) -> HslaOf<R>where
R: Float + CastRangeFrom<T>,
Trait Implementations§
Source§impl<T> AddAssign<&RgbaOf<T>> for RgbaOf<T>
impl<T> AddAssign<&RgbaOf<T>> for RgbaOf<T>
Source§fn add_assign(&mut self, rhs: &RgbaOf<T>)
fn add_assign(&mut self, rhs: &RgbaOf<T>)
+= operation. Read moreSource§impl<T> AddAssign for RgbaOf<T>where
T: AddAssign,
impl<T> AddAssign for RgbaOf<T>where
T: AddAssign,
Source§fn add_assign(&mut self, rhs: RgbaOf<T>)
fn add_assign(&mut self, rhs: RgbaOf<T>)
+= operation. Read moreSource§impl<T> Array<T, 4> for RgbaOf<T>
impl<T> Array<T, 4> for RgbaOf<T>
Source§impl<T> BitAndAssign<&RgbaOf<T>> for RgbaOf<T>where
T: BitAndAssign + Copy,
impl<T> BitAndAssign<&RgbaOf<T>> for RgbaOf<T>where
T: BitAndAssign + Copy,
Source§fn bitand_assign(&mut self, rhs: &RgbaOf<T>)
fn bitand_assign(&mut self, rhs: &RgbaOf<T>)
&= operation. Read moreSource§impl<T> BitAndAssign for RgbaOf<T>where
T: BitAndAssign,
impl<T> BitAndAssign for RgbaOf<T>where
T: BitAndAssign,
Source§fn bitand_assign(&mut self, rhs: RgbaOf<T>)
fn bitand_assign(&mut self, rhs: RgbaOf<T>)
&= operation. Read moreSource§impl<T> BitOrAssign<&RgbaOf<T>> for RgbaOf<T>where
T: BitOrAssign + Copy,
impl<T> BitOrAssign<&RgbaOf<T>> for RgbaOf<T>where
T: BitOrAssign + Copy,
Source§fn bitor_assign(&mut self, rhs: &RgbaOf<T>)
fn bitor_assign(&mut self, rhs: &RgbaOf<T>)
|= operation. Read moreSource§impl<T> BitOrAssign for RgbaOf<T>where
T: BitOrAssign,
impl<T> BitOrAssign for RgbaOf<T>where
T: BitOrAssign,
Source§fn bitor_assign(&mut self, rhs: RgbaOf<T>)
fn bitor_assign(&mut self, rhs: RgbaOf<T>)
|= operation. Read moreSource§impl<T> BitPattern for RgbaOf<T>
impl<T> BitPattern for RgbaOf<T>
Source§impl<'de, T> Deserialize<'de> for RgbaOf<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for RgbaOf<T>where
T: Deserialize<'de>,
Source§fn deserialize<D>(
deserializer: D,
) -> Result<RgbaOf<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<RgbaOf<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl<T> DivAssign<&RgbaOf<T>> for RgbaOf<T>
impl<T> DivAssign<&RgbaOf<T>> for RgbaOf<T>
Source§fn div_assign(&mut self, rhs: &RgbaOf<T>)
fn div_assign(&mut self, rhs: &RgbaOf<T>)
/= operation. Read moreSource§impl<T> DivAssign for RgbaOf<T>where
T: DivAssign,
impl<T> DivAssign for RgbaOf<T>where
T: DivAssign,
Source§fn div_assign(&mut self, rhs: RgbaOf<T>)
fn div_assign(&mut self, rhs: RgbaOf<T>)
/= operation. Read moreSource§impl<T> From<(T, T, T, T)> for RgbaOf<T>
impl<T> From<(T, T, T, T)> for RgbaOf<T>
Source§fn from(value: (T, T, T, T)) -> RgbaOf<T>
fn from(value: (T, T, T, T)) -> RgbaOf<T>
Source§impl<T, Policy> From<RgbaOf<T>> for RgbaOfWithDefault<T, Policy>where
Policy: Constant<T>,
impl<T, Policy> From<RgbaOf<T>> for RgbaOfWithDefault<T, Policy>where
Policy: Constant<T>,
Source§fn from(value: RgbaOf<T>) -> RgbaOfWithDefault<T, Policy>
fn from(value: RgbaOf<T>) -> RgbaOfWithDefault<T, Policy>
Source§impl<T, Policy> From<RgbaOfWithDefault<T, Policy>> for RgbaOf<T>where
Policy: Constant<T>,
impl<T, Policy> From<RgbaOfWithDefault<T, Policy>> for RgbaOf<T>where
Policy: Constant<T>,
Source§fn from(value: RgbaOfWithDefault<T, Policy>) -> RgbaOf<T>
fn from(value: RgbaOfWithDefault<T, Policy>) -> RgbaOf<T>
Source§impl<T, Idx> Get<Idx> for RgbaOf<T>
impl<T, Idx> Get<Idx> for RgbaOf<T>
type Output = <[T; 4] as Get<Idx>>::Output
Source§fn get(&self, index: Idx) -> Option<&<RgbaOf<T> as Get<Idx>>::Output>
fn get(&self, index: Idx) -> Option<&<RgbaOf<T> as Get<Idx>>::Output>
Source§unsafe fn get_unchecked(&self, index: Idx) -> &<RgbaOf<T> as Get<Idx>>::Output
unsafe fn get_unchecked(&self, index: Idx) -> &<RgbaOf<T> as Get<Idx>>::Output
Source§fn get_or_panic(&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
get(index) return Some, false otherwise.Source§fn is_index_invalid(&self, index: Idx) -> bool
fn is_index_invalid(&self, index: Idx) -> bool
get(index) return None, false otherwise.fn contains(&self, index: Idx) -> bool
Source§impl<T, Idx> GetManyMut<Idx> for RgbaOf<T>where
[T; 4]: GetManyMut<Idx>,
impl<T, Idx> GetManyMut<Idx> for RgbaOf<T>where
[T; 4]: GetManyMut<Idx>,
fn try_get_many_mut<const N: usize>( &mut self, indices: [Idx; N], ) -> Result<[&mut <RgbaOf<T> as Get<Idx>>::Output; N], GetDisjointMutError>
Source§fn get_many_mut<const N: usize>(
&mut self,
indices: [Idx; N],
) -> Option<[&mut <RgbaOf<T> as Get<Idx>>::Output; N]>
fn get_many_mut<const N: usize>( &mut self, indices: [Idx; N], ) -> Option<[&mut <RgbaOf<T> as Get<Idx>>::Output; N]>
Source§unsafe fn get_many_unchecked_mut<const N: usize>(
&mut self,
indices: [Idx; N],
) -> [&mut <RgbaOf<T> as Get<Idx>>::Output; N]
unsafe fn get_many_unchecked_mut<const N: usize>( &mut self, indices: [Idx; N], ) -> [&mut <RgbaOf<T> as Get<Idx>>::Output; N]
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]
Source§fn swap(&mut self, a: Idx, b: Idx) -> bool
fn swap(&mut self, a: Idx, b: Idx) -> bool
Source§fn swap_or_panic(&mut self, a: Idx, b: Idx)
fn swap_or_panic(&mut self, a: Idx, b: Idx)
Source§impl<T, Idx> GetMut<Idx> for RgbaOf<T>
impl<T, Idx> GetMut<Idx> for RgbaOf<T>
Source§fn get_mut(
&mut self,
index: Idx,
) -> Option<&mut <RgbaOf<T> as Get<Idx>>::Output>
fn get_mut( &mut self, index: Idx, ) -> Option<&mut <RgbaOf<T> as Get<Idx>>::Output>
Source§unsafe fn get_unchecked_mut(
&mut self,
index: Idx,
) -> &mut <RgbaOf<T> as Get<Idx>>::Output
unsafe fn get_unchecked_mut( &mut self, index: Idx, ) -> &mut <RgbaOf<T> as Get<Idx>>::Output
fn get_mut_or_panic(&mut self, index: Idx) -> &mut Self::Output
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>
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
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
Source§fn set(&mut self, index: Idx, value: Self::Output) -> bool
fn set(&mut self, index: Idx, value: Self::Output) -> bool
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
unsafe fn set_unchecked(&mut self, index: Idx, value: Self::Output) -> &mut Self
Source§impl<T> IColor for RgbaOf<T>where
T: Primitive,
impl<T> IColor for RgbaOf<T>where
T: Primitive,
const TRANSPARENT: RgbaOf<T>
type Component = T
fn to_rgba_of<R>(self) -> RgbaOf<R>
fn to_hsla_of<R>(self) -> HslaOf<R>
fn from_rgba_u8(rgba: RgbaOf<u8>) -> RgbaOf<T>
fn from_rgba_u16(rgba: RgbaOf<u16>) -> RgbaOf<T>
fn from_rgba_f32(rgba: RgbaOf<f32>) -> RgbaOf<T>
fn from_rgba_f64(rgba: RgbaOf<f64>) -> RgbaOf<T>
fn from_rgba_float(rgba: RgbaOf<f32>) -> RgbaOf<T>
Source§impl<'a, T> IntoIterator for &'a RgbaOf<T>where
&'a [T; 4]: IntoIterator,
impl<'a, T> IntoIterator for &'a RgbaOf<T>where
&'a [T; 4]: IntoIterator,
Source§impl<'a, T> IntoIterator for &'a mut RgbaOf<T>where
&'a mut [T; 4]: IntoIterator,
impl<'a, T> IntoIterator for &'a mut RgbaOf<T>where
&'a mut [T; 4]: IntoIterator,
Source§impl<T> IntoIterator for RgbaOf<T>where
[T; 4]: IntoIterator,
impl<T> IntoIterator for RgbaOf<T>where
[T; 4]: IntoIterator,
Source§impl<T> MapInternWith for RgbaOf<T>
impl<T> MapInternWith for RgbaOf<T>
Source§impl<T> MinusInfinity for RgbaOf<T>where
T: MinusInfinity + Copy,
impl<T> MinusInfinity for RgbaOf<T>where
T: MinusInfinity + Copy,
const MINUS_INFINITY: RgbaOf<T>
fn is_minus_infinity(&self) -> boolwhere
Self: PartialEq,
fn is_not_minus_infinity(&self) -> boolwhere
Self: PartialEq,
Source§impl<T> MulAssign<&RgbaOf<T>> for RgbaOf<T>
impl<T> MulAssign<&RgbaOf<T>> for RgbaOf<T>
Source§fn mul_assign(&mut self, rhs: &RgbaOf<T>)
fn mul_assign(&mut self, rhs: &RgbaOf<T>)
*= operation. Read moreSource§impl<T> MulAssign for RgbaOf<T>where
T: MulAssign,
impl<T> MulAssign for RgbaOf<T>where
T: MulAssign,
Source§fn mul_assign(&mut self, rhs: RgbaOf<T>)
fn mul_assign(&mut self, rhs: RgbaOf<T>)
*= operation. Read moreSource§impl<T> Ord for RgbaOf<T>where
T: Ord,
impl<T> Ord for RgbaOf<T>where
T: Ord,
Source§impl<T> PartialOrd for RgbaOf<T>where
T: PartialOrd,
impl<T> PartialOrd for RgbaOf<T>where
T: PartialOrd,
Source§impl<T> RemAssign<&RgbaOf<T>> for RgbaOf<T>
impl<T> RemAssign<&RgbaOf<T>> for RgbaOf<T>
Source§fn rem_assign(&mut self, rhs: &RgbaOf<T>)
fn rem_assign(&mut self, rhs: &RgbaOf<T>)
%= operation. Read moreSource§impl<T> RemAssign for RgbaOf<T>where
T: RemAssign,
impl<T> RemAssign for RgbaOf<T>where
T: RemAssign,
Source§fn rem_assign(&mut self, rhs: RgbaOf<T>)
fn rem_assign(&mut self, rhs: RgbaOf<T>)
%= operation. Read moreSource§impl<T> Serialize for RgbaOf<T>where
T: Serialize,
Available on crate feature serde only.
impl<T> Serialize for RgbaOf<T>where
T: Serialize,
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,
Source§impl<T> ShlAssign<&RgbaOf<T>> for RgbaOf<T>
impl<T> ShlAssign<&RgbaOf<T>> for RgbaOf<T>
Source§fn shl_assign(&mut self, rhs: &RgbaOf<T>)
fn shl_assign(&mut self, rhs: &RgbaOf<T>)
<<= operation. Read moreSource§impl<T> ShlAssign for RgbaOf<T>where
T: ShlAssign,
impl<T> ShlAssign for RgbaOf<T>where
T: ShlAssign,
Source§fn shl_assign(&mut self, rhs: RgbaOf<T>)
fn shl_assign(&mut self, rhs: RgbaOf<T>)
<<= operation. Read moreSource§impl<T> ShrAssign<&RgbaOf<T>> for RgbaOf<T>
impl<T> ShrAssign<&RgbaOf<T>> for RgbaOf<T>
Source§fn shr_assign(&mut self, rhs: &RgbaOf<T>)
fn shr_assign(&mut self, rhs: &RgbaOf<T>)
>>= operation. Read moreSource§impl<T> ShrAssign for RgbaOf<T>where
T: ShrAssign,
impl<T> ShrAssign for RgbaOf<T>where
T: ShrAssign,
Source§fn shr_assign(&mut self, rhs: RgbaOf<T>)
fn shr_assign(&mut self, rhs: RgbaOf<T>)
>>= operation. Read moreSource§impl<T> SubAssign<&RgbaOf<T>> for RgbaOf<T>
impl<T> SubAssign<&RgbaOf<T>> for RgbaOf<T>
Source§fn sub_assign(&mut self, rhs: &RgbaOf<T>)
fn sub_assign(&mut self, rhs: &RgbaOf<T>)
-= operation. Read moreSource§impl<T> SubAssign for RgbaOf<T>where
T: SubAssign,
impl<T> SubAssign for RgbaOf<T>where
T: SubAssign,
Source§fn sub_assign(&mut self, rhs: RgbaOf<T>)
fn sub_assign(&mut self, rhs: RgbaOf<T>)
-= operation. Read moreSource§impl<P> ToColor<P> for RgbaOf<P>where
P: Primitive,
impl<P> ToColor<P> for RgbaOf<P>where
P: Primitive,
type ToRgba<R: Primitive> = RgbaOf<R>
type ToHsla<R: Float> = HslaOf<R>
fn to_rgba_of<R>(self) -> <RgbaOf<P> as ToColor<P>>::ToRgba<R>where
R: Primitive + CastRangeFrom<P>,
fn to_hsla_of<R>(self) -> <RgbaOf<P> as ToColor<P>>::ToHsla<R>where
R: Float + CastRangeFrom<P>,
fn to_hsla(self) -> Self::ToHsla<f32>where
f32: CastRangeFrom<P>,
fn to_hsla_f32(self) -> Self::ToHsla<f32>where
f32: CastRangeFrom<P>,
fn to_hsla_f64(self) -> Self::ToHsla<f64>where
f64: CastRangeFrom<P>,
fn to_rgba(self) -> Self::ToRgba<f32>where
f32: CastRangeFrom<P>,
fn to_rgba_f32(self) -> Self::ToRgba<f32>where
f32: CastRangeFrom<P>,
fn to_rgba_f64(self) -> Self::ToRgba<f64>where
f64: CastRangeFrom<P>,
fn to_rgba_u8(self) -> Self::ToRgba<u8>where
u8: CastRangeFrom<P>,
fn to_rgba_u16(self) -> Self::ToRgba<u16>where
u16: CastRangeFrom<P>,
fn to_color(self) -> Self::ToRgba<f32>where
f32: CastRangeFrom<P>,
fn to_color_float(self) -> Self::ToRgba<f32>where
f32: CastRangeFrom<P>,
fn to_color_f32(self) -> Self::ToRgba<f32>where
f32: CastRangeFrom<P>,
fn to_color_f64(self) -> Self::ToRgba<f64>where
f64: CastRangeFrom<P>,
fn to_color_u8(self) -> Self::ToRgba<u8>where
u8: CastRangeFrom<P>,
fn to_color_u16(self) -> Self::ToRgba<u16>where
u16: CastRangeFrom<P>,
Source§impl<T, Idx> TryGetMut<Idx> for RgbaOf<T>
impl<T, Idx> TryGetMut<Idx> for RgbaOf<T>
Source§fn try_get_mut(
&mut self,
index: Idx,
) -> Result<&mut <RgbaOf<T> as Get<Idx>>::Output, <RgbaOf<T> as TryGet<Idx>>::Error>
fn try_get_mut( &mut self, index: Idx, ) -> Result<&mut <RgbaOf<T> as Get<Idx>>::Output, <RgbaOf<T> as TryGet<Idx>>::Error>
Source§impl<T, Policy> WithDefault<T, Policy> for RgbaOf<T>where
RgbaOf<T>: CfgSerialize + for<'de> CfgDeserialize<'de>,
T: CfgSerialize + for<'de> CfgDeserialize<'de>,
Policy: Constant<T>,
impl<T, Policy> WithDefault<T, Policy> for RgbaOf<T>where
RgbaOf<T>: CfgSerialize + for<'de> CfgDeserialize<'de>,
T: CfgSerialize + for<'de> CfgDeserialize<'de>,
Policy: Constant<T>,
type WithDefault = RgbaOfWithDefault<T, Policy>
impl<T> BitAllUsed for RgbaOf<T>where
T: BitAllUsed,
impl<T> BitZero for RgbaOf<T>where
T: BitZero,
impl<T> Collection for RgbaOf<T>
impl<T> CollectionBijective for RgbaOf<T>
impl<T> Copy for RgbaOf<T>where
T: Copy,
impl<T> Eq for RgbaOf<T>where
T: Eq,
Auto Trait Implementations§
impl<T> Freeze for RgbaOf<T>where
T: Freeze,
impl<T> RefUnwindSafe for RgbaOf<T>where
T: RefUnwindSafe,
impl<T> Send for RgbaOf<T>where
T: Send,
impl<T> Sync for RgbaOf<T>where
T: Sync,
impl<T> Unpin for RgbaOf<T>where
T: Unpin,
impl<T> UnsafeUnpin for RgbaOf<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RgbaOf<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<S, T, const N: usize> ArrayMax<T, N> for Swhere
S: Array<T, N>,
impl<S, T, const N: usize> ArrayMax<T, N> for Swhere
S: Array<T, N>,
fn max_element_by<F>(&self, compare: F) -> &T
fn max_element_by_key<F, K>(&self, f: F) -> &T
fn max_element_mut_by<F>(&mut self, compare: F) -> &mut T
fn max_element_mut_by_key<F, K>(&mut self, f: F) -> &mut T
fn max_element(&self) -> &Twhere
T: PartialOrd,
fn max_element_mut(&mut self) -> &mut Twhere
T: PartialOrd,
fn max_element_idx(&self) -> usizewhere
T: PartialOrd,
Source§impl<S, T, const N: usize> ArrayMin<T, N> for Swhere
S: Array<T, N>,
impl<S, T, const N: usize> ArrayMin<T, N> for Swhere
S: Array<T, N>,
fn min_element_by<F>(&self, compare: F) -> &T
fn min_element_by_key<F, K>(&self, f: F) -> &T
fn min_element_mut_by<F>(&mut self, compare: F) -> &mut T
fn min_element_mut_by_key<F, K>(&mut self, f: F) -> &mut T
fn min_element(&self) -> &Twhere
T: PartialOrd,
fn min_element_mut(&mut self) -> &mut Twhere
T: PartialOrd,
fn min_element_idx(&self) -> usizewhere
T: PartialOrd,
Source§impl<S, T, const N: usize> ArrayToColor<T, N> for Swhere
S: Array<T, N>,
impl<S, T, const N: usize> ArrayToColor<T, N> for Swhere
S: Array<T, N>,
Source§impl<C, T, const N: usize> AsArrayMut<T, N> for C
impl<C, T, const N: usize> AsArrayMut<T, N> for C
fn as_array_mut(&mut self) -> &mut [T; N]
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
Source§impl<C1, C2> CastRangeFrom<C2> for C1
impl<C1, C2> CastRangeFrom<C2> for C1
fn cast_range_from(value: C2) -> C1
Source§impl<S, T> CastRangeInto<T> for Swhere
T: CastRangeFrom<S>,
impl<S, T> CastRangeInto<T> for Swhere
T: CastRangeFrom<S>,
fn cast_range_into(self) -> T
Source§impl<T> Clamp for T
impl<T> Clamp for T
Source§fn clamp_elementwise(self, min_val: T, max_val: T) -> T
fn clamp_elementwise(self, min_val: T, max_val: T) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<I, T> CollectTo<T> for Iwhere
I: IntoIterator<Item = T>,
impl<I, T> CollectTo<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, K, V, S> CollectToGenMap<K, V, S> for I
impl<I, K, V, S> CollectToGenMap<K, V, S> for I
Source§impl<I, K, S> CollectToGenSet<K, S> for Iwhere
I: IntoIterator<Item = K>,
K: Clone,
impl<I, K, S> CollectToGenSet<K, S> for Iwhere
I: IntoIterator<Item = K>,
K: Clone,
Source§impl<I, T> CollectToGenVec<T> for Iwhere
I: IntoIterator<Item = T>,
impl<I, T> CollectToGenVec<T> for Iwhere
I: IntoIterator<Item = T>,
Source§impl<I, T1, T2> CollectToMap<T1, T2> for Iwhere
I: IntoIterator<Item = (T1, T2)>,
impl<I, T1, T2> CollectToMap<T1, T2> for Iwhere
I: IntoIterator<Item = (T1, T2)>,
Source§impl<T> Decrement for T
impl<T> Decrement for T
Source§fn can_decrement(&self) -> bool
fn can_decrement(&self) -> bool
Source§fn predecessor(self) -> Self
fn predecessor(self) -> Self
self - 1Source§fn predecessor_checked(&mut self) -> Result<Self, ()>
fn predecessor_checked(&mut self) -> Result<Self, ()>
self - 1Source§fn have_predecessor(self) -> bool
fn have_predecessor(self) -> bool
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,
Source§impl<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
fn from_json_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_json_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
fn from_json(json: &str) -> Result<Self, EncodeError>
Source§impl<T> FromRon for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromRon for Twhere
T: for<'de> Deserialize<'de>,
fn from_ron_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_ron_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
fn from_ron(ron: &str) -> Result<Self, EncodeError>
Source§impl<T> FromTmpBin for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromTmpBin for Twhere
T: for<'de> Deserialize<'de>,
fn from_tmp_bin_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_tmp_bin_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
Source§impl<T> FromXml for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromXml for Twhere
T: for<'de> Deserialize<'de>,
fn from_xml_bytes(bytes: &[u8]) -> Result<Self, EncodeError>
fn from_xml_with_reader<R>(reader: R) -> Result<Self, EncodeError>where
R: Read,
fn from_xml(xml: &str) -> Result<Self, EncodeError>
Source§impl<T> Increment for T
impl<T> Increment for T
Source§fn can_increment(&self) -> bool
fn can_increment(&self) -> bool
Source§fn successor_checked(&mut self) -> Result<Self, ()>
fn successor_checked(&mut self) -> Result<Self, ()>
self + 1Source§fn have_successor(self) -> bool
fn have_successor(self) -> bool
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>
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>
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<'a, Item, T> IterExtension<'a, Item> for Twhere
&'a T: IntoIterator<Item = Item> + 'a,
impl<'a, Item, T> IterExtension<'a, Item> for Twhere
&'a T: IntoIterator<Item = Item> + 'a,
fn iter(&'a self) -> <&'a Self as IntoIterator>::IntoIter
Source§impl<Item, T> IterPredicate<Item> for Twhere
T: IntoIterator<Item = Item>,
impl<Item, T> IterPredicate<Item> for Twhere
T: IntoIterator<Item = Item>,
Source§impl<S> Max for S
impl<S> Max for S
Source§fn max_elementwise(self, other: S) -> S
fn max_elementwise(self, other: S) -> S
Source§impl<S> Min for S
impl<S> Min for S
Source§fn min_elementwise(self, other: S) -> S
fn min_elementwise(self, other: S) -> S
Source§impl<T, Z> MinusOneIter for T
impl<T, Z> MinusOneIter for T
fn all_minusone(&self) -> bool
fn any_minusone(&self) -> bool
Source§impl<T> PartialOrdExtension for Twhere
T: PartialOrd,
impl<T> PartialOrdExtension for Twhere
T: PartialOrd,
Source§fn max_partial(self, other: Self) -> Selfwhere
Self: Sized,
fn max_partial(self, other: Self) -> Selfwhere
Self: Sized,
PartialOrd operator, not component wiseSource§fn min_partial(self, other: Self) -> Selfwhere
Self: Sized,
fn min_partial(self, other: Self) -> Selfwhere
Self: Sized,
PartialOrd operator, not component wiseSource§fn clamp_partial(self, min: Self, max: Self) -> Selfwhere
Self: Sized,
fn clamp_partial(self, min: Self, max: Self) -> Selfwhere
Self: Sized,
PartialOrd operator, not component wiseSource§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
Source§fn is_negative_or_zero(&self) -> bool
fn is_negative_or_zero(&self) -> bool
Source§fn is_strictly_positive(&self) -> bool
fn is_strictly_positive(&self) -> bool
Source§fn is_strictly_negative(&self) -> bool
fn is_strictly_negative(&self) -> bool
Source§impl<T> TakeHalf for Twhere
T: NumericIdentity,
impl<T> TakeHalf for Twhere
T: NumericIdentity,
Source§impl<T> ToAngleComposite for T
impl<T> ToAngleComposite for T
Source§impl<S> ToBool for S
impl<S> ToBool for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToBool>::Output>
Source§fn to_bool_range(self) -> <S as ToBool>::Output
fn to_bool_range(self) -> <S as ToBool>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.Source§impl<S> ToF32 for S
impl<S> ToF32 for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToF32>::Output>
Source§fn to_f32_range(self) -> <S as ToF32>::Output
fn to_f32_range(self) -> <S as ToF32>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.Source§impl<S> ToF64 for S
impl<S> ToF64 for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToF64>::Output>
Source§fn to_f64_range(self) -> <S as ToF64>::Output
fn to_f64_range(self) -> <S as ToF64>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.Source§impl<S> ToFloat for S
impl<S> ToFloat for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToFloat>::Output>
Source§fn to_float_range(self) -> <S as ToFloat>::Output
fn to_float_range(self) -> <S as ToFloat>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.Source§impl<S> ToI16 for S
impl<S> ToI16 for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToI16>::Output>
Source§fn to_i16_range(self) -> <S as ToI16>::Output
fn to_i16_range(self) -> <S as ToI16>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.Source§impl<S> ToI32 for S
impl<S> ToI32 for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToI32>::Output>
Source§fn to_i32_range(self) -> <S as ToI32>::Output
fn to_i32_range(self) -> <S as ToI32>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.Source§impl<S> ToI64 for S
impl<S> ToI64 for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToI64>::Output>
Source§fn to_i64_range(self) -> <S as ToI64>::Output
fn to_i64_range(self) -> <S as ToI64>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.Source§impl<S> ToI8 for S
impl<S> ToI8 for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToI8>::Output>
Source§fn to_i8_range(self) -> <S as ToI8>::Output
fn to_i8_range(self) -> <S as ToI8>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.Source§impl<S> ToISize for S
impl<S> ToISize for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToISize>::Output>
Source§fn to_isize_range(self) -> <S as ToISize>::Output
fn to_isize_range(self) -> <S as ToISize>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.Source§impl<S> ToInt for S
impl<S> ToInt for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToInt>::Output>
Source§fn to_int_range(self) -> <S as ToInt>::Output
fn to_int_range(self) -> <S as ToInt>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.Source§impl<T> ToJson for Twhere
T: Serialize,
impl<T> ToJson for Twhere
T: Serialize,
fn to_json(&self) -> Result<String, EncodeError>
fn to_json_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>where
W: Write,
Source§impl<T> ToRon for Twhere
T: Serialize,
impl<T> ToRon for Twhere
T: Serialize,
fn to_ron(&self) -> Result<String, EncodeError>
fn to_ron_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>where
W: Write,
Source§impl<T> ToTimeComposite for T
impl<T> ToTimeComposite for T
type Output = <T as Map>::WithType<<<T as MapIntern>::Item as ToTimeComposite>::Output>
Source§fn millis(self) -> <T as ToTimeComposite>::Output
fn millis(self) -> <T as ToTimeComposite>::Output
Source§fn secs(self) -> <T as ToTimeComposite>::Output
fn secs(self) -> <T as ToTimeComposite>::Output
Source§fn mins(self) -> <T as ToTimeComposite>::Output
fn mins(self) -> <T as ToTimeComposite>::Output
Source§fn hours(self) -> <T as ToTimeComposite>::Output
fn hours(self) -> <T as ToTimeComposite>::Output
Source§fn days(self) -> <T as ToTimeComposite>::Output
fn days(self) -> <T as ToTimeComposite>::Output
Source§impl<T> ToTmpBin for Twhere
T: Serialize,
impl<T> ToTmpBin for Twhere
T: Serialize,
Source§fn to_tmp_bin(&self) -> Result<Vec<u8>, EncodeError>
fn to_tmp_bin(&self) -> Result<Vec<u8>, EncodeError>
Source§fn to_tmp_bin_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>where
W: Write,
fn to_tmp_bin_with_writer<W>(&self, writer: W) -> Result<(), EncodeError>where
W: Write,
Source§impl<S> ToU16 for S
impl<S> ToU16 for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToU16>::Output>
Source§fn to_u16_range(self) -> <S as ToU16>::Output
fn to_u16_range(self) -> <S as ToU16>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.Source§impl<S> ToU32 for S
impl<S> ToU32 for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToU32>::Output>
Source§fn to_u32_range(self) -> <S as ToU32>::Output
fn to_u32_range(self) -> <S as ToU32>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.Source§impl<S> ToU64 for S
impl<S> ToU64 for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToU64>::Output>
Source§fn to_u64_range(self) -> <S as ToU64>::Output
fn to_u64_range(self) -> <S as ToU64>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.Source§impl<S> ToU8 for S
impl<S> ToU8 for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToU8>::Output>
Source§fn to_u8_range(self) -> <S as ToU8>::Output
fn to_u8_range(self) -> <S as ToU8>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.Source§impl<S> ToUInt for S
impl<S> ToUInt for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToUInt>::Output>
Source§fn to_uint_range(self) -> <S as ToUInt>::Output
fn to_uint_range(self) -> <S as ToUInt>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.Source§impl<S> ToUSize for S
impl<S> ToUSize for S
type Output = <S as Map>::WithType<<<S as MapIntern>::Item as ToUSize>::Output>
Source§fn to_usize_range(self) -> <S as ToUSize>::Output
fn to_usize_range(self) -> <S as ToUSize>::Output
RangeDefault to the RangeDefault of the target type,
in a generic friendly way, and similar to the From trait.