#[repr(C)]pub struct RectangleOf<T> {
pub pos: T,
pub size: T,
}Expand description
A N dimension rectangle
Fields§
§pos: T§size: TImplementations§
Source§impl<T> RectangleOf<T>
impl<T> RectangleOf<T>
pub const fn from_array(array: [T; 2]) -> Self
pub const fn to_array(self) -> [T; 2]
pub const fn array(&self) -> &[T; 2]
pub const fn array_mut(&mut self) -> &mut [T; 2]
Sourcepub fn max(self, other: Self) -> Selfwhere
Self: Max,
pub fn max(self, other: Self) -> Selfwhere
Self: Max,
Max function in a component way
Can cause a panic for grid if the size mismatch
Sourcepub fn min(self, other: Self) -> Selfwhere
Self: Min,
pub fn min(self, other: Self) -> Selfwhere
Self: Min,
Min function in a component way
Can cause a panic for grid if the size mismatch
Sourcepub fn abs(self) -> <Self as Abs>::Outputwhere
Self: Abs,
pub fn abs(self) -> <Self as Abs>::Outputwhere
Self: Abs,
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: Self, coef: C) -> Self
pub fn mix<C>(self, other: Self, coef: C) -> Self
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: Self, coef: C) -> Self
pub fn mix_unchecked<C>(self, other: Self, coef: C) -> Self
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> RectangleOf<Vector<T, 2>>where
T: Number,
impl<T> RectangleOf<Vector<T, 2>>where
T: Number,
pub fn down_left(&self) -> Vector<T, 2>
pub fn down_right(&self) -> Vector<T, 2>
Sourcepub fn bottom_left(&self) -> Vector<T, 2>
pub fn bottom_left(&self) -> Vector<T, 2>
Same as down_left()
Sourcepub fn bottom_right(&self) -> Vector<T, 2>
pub fn bottom_right(&self) -> Vector<T, 2>
Same as down_right()
pub fn up_right(&self) -> Vector<T, 2>where
T: Add<T, Output = T>,
pub fn up_left(&self) -> Vector<T, 2>
Source§impl<T, const N: usize> RectangleOf<Vector<T, N>>
impl<T, const N: usize> RectangleOf<Vector<T, N>>
pub fn new_centered(pos_middle: Vector<T, N>, size: Vector<T, N>) -> Self
pub fn new_with_center( bottom_left: Vector<T, N>, size: Vector<T, N>, center_coef: Vector<T, N>, ) -> Self
pub fn get_coef(&self, coef: Vector<T, N>) -> Vector<T, N>where
Vector<T, N>: Arithmetic,
pub fn center(&self) -> Vector<T, N>
pub fn middle_right(&self) -> Vector<T, N>
pub fn middle_left(&self) -> Vector<T, N>
pub fn middle_up(&self) -> Vector<T, N>
pub fn middle_down(&self) -> Vector<T, N>
pub fn middle_forward(&self) -> Vector<T, N>
pub fn middle_backward(&self) -> Vector<T, N>
pub fn middle_ana(&self) -> Vector<T, N>
pub fn middle_kata(&self) -> Vector<T, N>
pub fn right_value(&self) -> T
pub fn left_value(&self) -> T
pub fn up_value(&self) -> T
pub fn down_value(&self) -> T
Sourcepub fn bottom_value(&self) -> T
pub fn bottom_value(&self) -> T
Same as down_value()
pub fn forward_value(&self) -> T
pub fn backward_value(&self) -> T
pub fn ana_value(&self) -> T
pub fn kata_value(&self) -> T
Source§impl<T, const N: usize> RectangleOf<Vector<T, N>>where
T: Primitive,
impl<T, const N: usize> RectangleOf<Vector<T, N>>where
T: Primitive,
pub fn split_axis(&self, nb: T, axis: usize) -> impl Iterator<Item = Self>
pub fn split_x(&self, nb: T) -> impl Iterator<Item = Self>
pub fn split_y(&self, nb: T) -> impl Iterator<Item = Self>
pub fn split_z(&self, nb: T) -> impl Iterator<Item = Self>
pub fn split_w(&self, nb: T) -> impl Iterator<Item = Self>
pub fn split_min(&self, nb: T) -> impl Iterator<Item = Self>
pub fn split_max(&self, nb: T) -> impl Iterator<Item = Self>
Source§impl<T, const N: usize> RectangleOf<Vector<T, N>>where
T: Number,
impl<T, const N: usize> RectangleOf<Vector<T, N>>where
T: Number,
Sourcepub fn is_inside(&self, point: Vector<T, N>) -> bool
pub fn is_inside(&self, point: Vector<T, N>) -> bool
Check if a point inside the rectangle. Also work for indexing
use hexga_math::prelude::*;
// inside :
assert!(rect2i(0, 0, 2, 2).is_inside(point2(1, 1)));
assert!(rect2i(0, 0, 2, 2).is_inside(point2(0, 0)));
// not inside :
assert!(!rect2i(0, 0, 2, 2).is_inside(point2(2, 0)));
assert!(!rect2i(0, 0, 2, 2).is_inside(point2(0, 2)));
assert!(!rect2i(0, 0, 2, 2).is_inside(point2(2, 2)));
assert!(!rect2i(0, 0, 2, 2).is_inside(point2( 3, 3)));
assert!(!rect2i(0, 0, 2, 2).is_inside(point2(-1, -1)));
assert!(!rect2i(0, 0, 2, 2).is_inside(point2(-1, -1)));
assert!(!rect2i(0, 0, 2, 2).is_inside(point2( 1, 10)));
assert!(!rect2i(0, 0, 2, 2).is_inside(point2( 1, -10)));
assert!(!rect2i(0, 0, 2, 2).is_inside(point2(-10, 1)));
assert!(!rect2i(0, 0, 2, 2).is_inside(point2( 10, 1)));
Sourcepub fn is_inside_inclusif(&self, point: Vector<T, N>) -> bool
pub fn is_inside_inclusif(&self, point: Vector<T, N>) -> bool
Check if a point inside the rectangle. Don’t work for indexing
pub fn is_rect_inside(&self, rect: Rectangle<T, N>) -> bool
pub fn is_empty(&self) -> bool
pub fn clamp_vector(&self, vector: Vector<T, N>) -> Vector<T, N>
pub fn intersect_or_empty(self, other: Self) -> Self
Source§impl<T> RectangleOf<T>
impl<T> RectangleOf<T>
Source§impl<T, const N: usize> RectangleOf<Vector<T, N>>where
T: Number,
impl<T, const N: usize> RectangleOf<Vector<T, N>>where
T: Number,
pub fn from_pos_to_pos(start_pos: Vector<T, N>, end_pos: Vector<T, N>) -> Self
Trait Implementations§
Source§impl<T> Add<T> for RectangleOf<T>
impl<T> Add<T> for RectangleOf<T>
Source§impl<T> Add for RectangleOf<T>where
T: Add<T>,
impl<T> Add for RectangleOf<T>where
T: Add<T>,
Source§impl<T> AddAssign<&RectangleOf<T>> for RectangleOf<T>
impl<T> AddAssign<&RectangleOf<T>> for RectangleOf<T>
Source§fn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
+= operation. Read moreSource§impl<T> AddAssign for RectangleOf<T>where
T: AddAssign,
impl<T> AddAssign for RectangleOf<T>where
T: AddAssign,
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+= operation. Read moreSource§impl<T> Array<T, 2> for RectangleOf<T>
impl<T> Array<T, 2> for RectangleOf<T>
Source§impl<T> ArrayWithType<T, 2> for RectangleOf<T>
impl<T> ArrayWithType<T, 2> for RectangleOf<T>
type WithType<T2> = RectangleOf<T2>
Source§impl<T> AsMut<[T; 2]> for RectangleOf<T>
impl<T> AsMut<[T; 2]> for RectangleOf<T>
Source§impl<T> AsRef<[T; 2]> for RectangleOf<T>
impl<T> AsRef<[T; 2]> for RectangleOf<T>
Source§impl<T> Binary for RectangleOf<T>where
T: Binary,
impl<T> Binary for RectangleOf<T>where
T: Binary,
Source§impl<T> BitAnd<T> for RectangleOf<T>
impl<T> BitAnd<T> for RectangleOf<T>
Source§impl<T> BitAnd for RectangleOf<T>where
T: BitAnd<T>,
impl<T> BitAnd for RectangleOf<T>where
T: BitAnd<T>,
Source§impl<T> BitAndAssign<&RectangleOf<T>> for RectangleOf<T>where
T: BitAndAssign + Copy,
impl<T> BitAndAssign<&RectangleOf<T>> for RectangleOf<T>where
T: BitAndAssign + Copy,
Source§fn bitand_assign(&mut self, rhs: &Self)
fn bitand_assign(&mut self, rhs: &Self)
&= operation. Read moreSource§impl<T> BitAndAssign for RectangleOf<T>where
T: BitAndAssign,
impl<T> BitAndAssign for RectangleOf<T>where
T: BitAndAssign,
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl<T> BitOr<T> for RectangleOf<T>
impl<T> BitOr<T> for RectangleOf<T>
Source§impl<T> BitOr for RectangleOf<T>where
T: BitOr<T>,
impl<T> BitOr for RectangleOf<T>where
T: BitOr<T>,
Source§impl<T> BitOrAssign<&RectangleOf<T>> for RectangleOf<T>where
T: BitOrAssign + Copy,
impl<T> BitOrAssign<&RectangleOf<T>> for RectangleOf<T>where
T: BitOrAssign + Copy,
Source§fn bitor_assign(&mut self, rhs: &Self)
fn bitor_assign(&mut self, rhs: &Self)
|= operation. Read moreSource§impl<T> BitOrAssign for RectangleOf<T>where
T: BitOrAssign,
impl<T> BitOrAssign for RectangleOf<T>where
T: BitOrAssign,
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl<T> Clone for RectangleOf<T>where
T: Clone,
impl<T> Clone for RectangleOf<T>where
T: Clone,
Source§impl<T> Debug for RectangleOf<T>where
T: Debug,
impl<T> Debug for RectangleOf<T>where
T: Debug,
Source§impl<T> Default for RectangleOf<T>where
T: Number,
impl<T> Default for RectangleOf<T>where
T: Number,
Source§impl<'de, T> Deserialize<'de> for RectangleOf<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for RectangleOf<T>where
T: 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>,
Source§impl<T> Display for RectangleOf<T>where
T: Display,
impl<T> Display for RectangleOf<T>where
T: Display,
Source§impl<T> Div<T> for RectangleOf<T>
impl<T> Div<T> for RectangleOf<T>
Source§impl<T> Div for RectangleOf<T>where
T: Div<T>,
impl<T> Div for RectangleOf<T>where
T: Div<T>,
Source§impl<T> DivAssign<&RectangleOf<T>> for RectangleOf<T>
impl<T> DivAssign<&RectangleOf<T>> for RectangleOf<T>
Source§fn div_assign(&mut self, rhs: &Self)
fn div_assign(&mut self, rhs: &Self)
/= operation. Read moreSource§impl<T> DivAssign for RectangleOf<T>where
T: DivAssign,
impl<T> DivAssign for RectangleOf<T>where
T: DivAssign,
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/= operation. Read moreSource§impl<T> From<[T; 2]> for RectangleOf<T>
impl<T> From<[T; 2]> for RectangleOf<T>
Source§impl<T> From<(T, T)> for RectangleOf<T>
impl<T> From<(T, T)> for RectangleOf<T>
Source§impl<T> From<RectangleOf<T>> for [T; 2]
impl<T> From<RectangleOf<T>> for [T; 2]
Source§fn from(value: RectangleOf<T>) -> Self
fn from(value: RectangleOf<T>) -> Self
Source§impl<T> From<RectangleOf<T>> for (T, T)
impl<T> From<RectangleOf<T>> for (T, T)
Source§fn from(value: RectangleOf<T>) -> Self
fn from(value: RectangleOf<T>) -> Self
Source§impl<T, Idx> Get<Idx> for RectangleOf<T>
impl<T, Idx> Get<Idx> for RectangleOf<T>
type Output = <[T; 2] as Get<Idx>>::Output
Source§unsafe fn get_unchecked(&self, index: Idx) -> &Self::Output
unsafe fn get_unchecked(&self, index: Idx) -> &Self::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.Source§impl<T, Idx> GetManyMut<Idx> for RectangleOf<T>where
[T; 2]: GetManyMut<Idx>,
impl<T, Idx> GetManyMut<Idx> for RectangleOf<T>where
[T; 2]: GetManyMut<Idx>,
fn try_get_many_mut<const N: usize>( &mut self, indices: [Idx; N], ) -> Result<[&mut Self::Output; N], ManyMutError>
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]>
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]
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 RectangleOf<T>
impl<T, Idx> GetMut<Idx> for RectangleOf<T>
Source§fn get_mut(&mut self, index: Idx) -> Option<&mut Self::Output>
fn get_mut(&mut self, index: Idx) -> Option<&mut Self::Output>
Source§unsafe fn get_unchecked_mut(&mut self, index: Idx) -> &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 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> Half for RectangleOf<T>
impl<T> Half for RectangleOf<T>
Source§impl<T> Hash for RectangleOf<T>where
T: Hash,
impl<T> Hash for RectangleOf<T>where
T: Hash,
Source§impl<T, Idx> Index<Idx> for RectangleOf<T>
impl<T, Idx> Index<Idx> for RectangleOf<T>
Source§impl<T, Idx> IndexMut<Idx> for RectangleOf<T>
impl<T, Idx> IndexMut<Idx> for RectangleOf<T>
Source§impl<'a, T> IntoIterator for &'a RectangleOf<T>where
&'a [T; 2]: IntoIterator,
impl<'a, T> IntoIterator for &'a RectangleOf<T>where
&'a [T; 2]: IntoIterator,
Source§impl<'a, T> IntoIterator for &'a mut RectangleOf<T>where
&'a mut [T; 2]: IntoIterator,
impl<'a, T> IntoIterator for &'a mut RectangleOf<T>where
&'a mut [T; 2]: IntoIterator,
Source§impl<T> IntoIterator for RectangleOf<T>where
[T; 2]: IntoIterator,
impl<T> IntoIterator for RectangleOf<T>where
[T; 2]: IntoIterator,
Source§impl<T> LowerExp for RectangleOf<T>where
T: LowerExp,
impl<T> LowerExp for RectangleOf<T>where
T: LowerExp,
Source§impl<T> LowerHex for RectangleOf<T>where
T: LowerHex,
impl<T> LowerHex for RectangleOf<T>where
T: LowerHex,
Source§impl<T> Map for RectangleOf<T>
impl<T> Map for RectangleOf<T>
Source§impl<T> MapIntern for RectangleOf<T>
impl<T> MapIntern for RectangleOf<T>
Source§impl<T> MapInternWith for RectangleOf<T>
impl<T> MapInternWith for RectangleOf<T>
Source§impl<T> MapWith for RectangleOf<T>
impl<T> MapWith for RectangleOf<T>
Source§impl<T> MaxValue for RectangleOf<T>
impl<T> MaxValue for RectangleOf<T>
Source§impl<T> MinValue for RectangleOf<T>
impl<T> MinValue for RectangleOf<T>
Source§impl<T> MinusOne for RectangleOf<T>
impl<T> MinusOne for RectangleOf<T>
Source§impl<T> Mul<T> for RectangleOf<T>
impl<T> Mul<T> for RectangleOf<T>
Source§impl<T> Mul for RectangleOf<T>where
T: Mul<T>,
impl<T> Mul for RectangleOf<T>where
T: Mul<T>,
Source§impl<T> MulAssign<&RectangleOf<T>> for RectangleOf<T>
impl<T> MulAssign<&RectangleOf<T>> for RectangleOf<T>
Source§fn mul_assign(&mut self, rhs: &Self)
fn mul_assign(&mut self, rhs: &Self)
*= operation. Read moreSource§impl<T> MulAssign for RectangleOf<T>where
T: MulAssign,
impl<T> MulAssign for RectangleOf<T>where
T: MulAssign,
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*= operation. Read moreSource§impl<T> NaNValue for RectangleOf<T>
impl<T> NaNValue for RectangleOf<T>
Source§impl<T> Neg for RectangleOf<T>where
T: Neg,
impl<T> Neg for RectangleOf<T>where
T: Neg,
Source§impl<T> Not for RectangleOf<T>where
T: Not,
impl<T> Not for RectangleOf<T>where
T: Not,
Source§impl<T> Octal for RectangleOf<T>where
T: Octal,
impl<T> Octal for RectangleOf<T>where
T: Octal,
Source§impl<T> One for RectangleOf<T>
impl<T> One for RectangleOf<T>
Source§impl<T> Ord for RectangleOf<T>where
T: Ord,
impl<T> Ord for RectangleOf<T>where
T: Ord,
Source§impl<T> PartialEq for RectangleOf<T>where
T: PartialEq,
impl<T> PartialEq for RectangleOf<T>where
T: PartialEq,
Source§impl<T> PartialOrd for RectangleOf<T>where
T: PartialOrd,
impl<T> PartialOrd for RectangleOf<T>where
T: PartialOrd,
Source§impl<T> Pointer for RectangleOf<T>where
T: Pointer,
impl<T> Pointer for RectangleOf<T>where
T: Pointer,
Source§impl<T> Product for RectangleOf<T>
impl<T> Product for RectangleOf<T>
Source§impl<T> Rem<T> for RectangleOf<T>
impl<T> Rem<T> for RectangleOf<T>
Source§impl<T> Rem for RectangleOf<T>where
T: Rem<T>,
impl<T> Rem for RectangleOf<T>where
T: Rem<T>,
Source§impl<T> RemAssign<&RectangleOf<T>> for RectangleOf<T>
impl<T> RemAssign<&RectangleOf<T>> for RectangleOf<T>
Source§fn rem_assign(&mut self, rhs: &Self)
fn rem_assign(&mut self, rhs: &Self)
%= operation. Read moreSource§impl<T> RemAssign for RectangleOf<T>where
T: RemAssign,
impl<T> RemAssign for RectangleOf<T>where
T: RemAssign,
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%= operation. Read moreSource§impl<T> Serialize for RectangleOf<T>where
T: Serialize,
Available on crate feature serde only.
impl<T> Serialize for RectangleOf<T>where
T: Serialize,
serde only.Source§impl<T> Shl<T> for RectangleOf<T>
impl<T> Shl<T> for RectangleOf<T>
Source§impl<T> Shl for RectangleOf<T>where
T: Shl<T>,
impl<T> Shl for RectangleOf<T>where
T: Shl<T>,
Source§impl<T> ShlAssign<&RectangleOf<T>> for RectangleOf<T>
impl<T> ShlAssign<&RectangleOf<T>> for RectangleOf<T>
Source§fn shl_assign(&mut self, rhs: &Self)
fn shl_assign(&mut self, rhs: &Self)
<<= operation. Read moreSource§impl<T> ShlAssign for RectangleOf<T>where
T: ShlAssign,
impl<T> ShlAssign for RectangleOf<T>where
T: ShlAssign,
Source§fn shl_assign(&mut self, rhs: Self)
fn shl_assign(&mut self, rhs: Self)
<<= operation. Read moreSource§impl<T> Shr<T> for RectangleOf<T>
impl<T> Shr<T> for RectangleOf<T>
Source§impl<T> Shr for RectangleOf<T>where
T: Shr<T>,
impl<T> Shr for RectangleOf<T>where
T: Shr<T>,
Source§impl<T> ShrAssign<&RectangleOf<T>> for RectangleOf<T>
impl<T> ShrAssign<&RectangleOf<T>> for RectangleOf<T>
Source§fn shr_assign(&mut self, rhs: &Self)
fn shr_assign(&mut self, rhs: &Self)
>>= operation. Read moreSource§impl<T> ShrAssign for RectangleOf<T>where
T: ShrAssign,
impl<T> ShrAssign for RectangleOf<T>where
T: ShrAssign,
Source§fn shr_assign(&mut self, rhs: Self)
fn shr_assign(&mut self, rhs: Self)
>>= operation. Read moreSource§impl<T> Sub<T> for RectangleOf<T>
impl<T> Sub<T> for RectangleOf<T>
Source§impl<T> Sub for RectangleOf<T>where
T: Sub<T>,
impl<T> Sub for RectangleOf<T>where
T: Sub<T>,
Source§impl<T> SubAssign<&RectangleOf<T>> for RectangleOf<T>
impl<T> SubAssign<&RectangleOf<T>> for RectangleOf<T>
Source§fn sub_assign(&mut self, rhs: &Self)
fn sub_assign(&mut self, rhs: &Self)
-= operation. Read moreSource§impl<T> SubAssign for RectangleOf<T>where
T: SubAssign,
impl<T> SubAssign for RectangleOf<T>where
T: SubAssign,
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read moreSource§impl<T> Sum for RectangleOf<T>
impl<T> Sum for RectangleOf<T>
Source§impl<T, Idx> TryGet<Idx> for RectangleOf<T>
impl<T, Idx> TryGet<Idx> for RectangleOf<T>
Source§impl<T, Idx> TryGetMut<Idx> for RectangleOf<T>
impl<T, Idx> TryGetMut<Idx> for RectangleOf<T>
Source§impl<T> UpperExp for RectangleOf<T>where
T: UpperExp,
impl<T> UpperExp for RectangleOf<T>where
T: UpperExp,
Source§impl<T> UpperHex for RectangleOf<T>where
T: UpperHex,
impl<T> UpperHex for RectangleOf<T>where
T: UpperHex,
Source§impl<T> Zero for RectangleOf<T>
impl<T> Zero for RectangleOf<T>
impl<T> Copy for RectangleOf<T>where
T: Copy,
impl<T> Eq for RectangleOf<T>where
T: Eq,
Auto Trait Implementations§
impl<T> Freeze for RectangleOf<T>where
T: Freeze,
impl<T> RefUnwindSafe for RectangleOf<T>where
T: RefUnwindSafe,
impl<T> Send for RectangleOf<T>where
T: Send,
impl<T> Sync for RectangleOf<T>where
T: Sync,
impl<T> Unpin for RectangleOf<T>where
T: Unpin,
impl<T> UnwindSafe for RectangleOf<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<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> 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<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> 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
fn any<P>(&'a self, p: P) -> bool
fn all<P>(&'a self, p: P) -> bool
fn for_each<F>(&'a self, f: F)where
F: FnMut(Item),
fn any_with<P, O>(&'a self, other: &'a O, p: P) -> bool
fn all_with<P, O>(&'a self, other: &'a O, p: P) -> bool
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> ToTimeComposite for T
impl<T> ToTimeComposite for T
type Output = <T as Map>::WithType<<<T as MapIntern>::Item as ToTimeComposite>::Output>
fn ms(self) -> <T as ToTimeComposite>::Output
fn s(self) -> <T as ToTimeComposite>::Output
Source§fn mins(self) -> <T as ToTimeComposite>::Output
fn mins(self) -> <T as ToTimeComposite>::Output
s to avoid the confusion with the min function…fn hour(self) -> <T as ToTimeComposite>::Output
fn day(self) -> <T as ToTimeComposite>::Output
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.