#[repr(C)]pub struct ISizeVec2 {
pub x: isize,
pub y: isize,
}Expand description
A 2-dimensional vector.
Fields§
§x: isize§y: isizeImplementations§
Source§impl ISizeVec2
impl ISizeVec2
Sourcepub fn map<F>(self, f: F) -> Self
pub fn map<F>(self, f: F) -> Self
Returns a vector containing each element of self modified by a mapping function f.
Sourcepub fn select(mask: BVec2, if_true: Self, if_false: Self) -> Self
pub fn select(mask: BVec2, if_true: Self, if_false: Self) -> Self
Creates a vector from the elements in if_true and if_false, selecting which to use
for each element of self.
A true element in the mask uses the corresponding element from if_true, and false
uses the element from if_false.
Sourcepub const fn from_array(a: [isize; 2]) -> Self
pub const fn from_array(a: [isize; 2]) -> Self
Creates a new vector from an array.
Sourcepub const fn from_slice(slice: &[isize]) -> Self
pub const fn from_slice(slice: &[isize]) -> Self
Creates a vector from the first 2 values in slice.
§Panics
Panics if slice is less than 2 elements long.
Sourcepub fn write_to_slice(self, slice: &mut [isize])
pub fn write_to_slice(self, slice: &mut [isize])
Writes the elements of self to the first 2 elements in slice.
§Panics
Panics if slice is less than 2 elements long.
Sourcepub const fn extend(self, z: isize) -> ISizeVec3
pub const fn extend(self, z: isize) -> ISizeVec3
Creates a 3D vector from self and the given z value.
Sourcepub fn dot_into_vec(self, rhs: Self) -> Self
pub fn dot_into_vec(self, rhs: Self) -> Self
Returns a vector where every component is the dot product of self and rhs.
Sourcepub fn min(self, rhs: Self) -> Self
pub fn min(self, rhs: Self) -> Self
Returns a vector containing the minimum values for each element of self and rhs.
In other words this computes [min(x, rhs.x), min(self.y, rhs.y), ..].
Sourcepub fn max(self, rhs: Self) -> Self
pub fn max(self, rhs: Self) -> Self
Returns a vector containing the maximum values for each element of self and rhs.
In other words this computes [max(self.x, rhs.x), max(self.y, rhs.y), ..].
Sourcepub fn clamp(self, min: Self, max: Self) -> Self
pub fn clamp(self, min: Self, max: Self) -> Self
Component-wise clamping of values, similar to isize::clamp.
Each element in min must be less-or-equal to the corresponding element in max.
§Panics
Will panic if min is greater than max when glam_assert is enabled.
Sourcepub fn min_element(self) -> isize
pub fn min_element(self) -> isize
Returns the horizontal minimum of self.
In other words this computes min(x, y, ..).
Sourcepub fn max_element(self) -> isize
pub fn max_element(self) -> isize
Returns the horizontal maximum of self.
In other words this computes max(x, y, ..).
Sourcepub fn min_position(self) -> usize
pub fn min_position(self) -> usize
Returns the index of the first minimum element of self.
Sourcepub fn max_position(self) -> usize
pub fn max_position(self) -> usize
Returns the index of the first maximum element of self.
Sourcepub fn element_sum(self) -> isize
pub fn element_sum(self) -> isize
Returns the sum of all elements of self.
In other words, this computes self.x + self.y + ...
Sourcepub fn element_product(self) -> isize
pub fn element_product(self) -> isize
Returns the product of all elements of self.
In other words, this computes self.x * self.y * ...
Sourcepub fn cmpeq(self, rhs: Self) -> BVec2
pub fn cmpeq(self, rhs: Self) -> BVec2
Returns a vector mask containing the result of a == comparison for each element of
self and rhs.
In other words, this computes [self.x == rhs.x, self.y == rhs.y, ..] for all
elements.
Sourcepub fn cmpne(self, rhs: Self) -> BVec2
pub fn cmpne(self, rhs: Self) -> BVec2
Returns a vector mask containing the result of a != comparison for each element of
self and rhs.
In other words this computes [self.x != rhs.x, self.y != rhs.y, ..] for all
elements.
Sourcepub fn cmpge(self, rhs: Self) -> BVec2
pub fn cmpge(self, rhs: Self) -> BVec2
Returns a vector mask containing the result of a >= comparison for each element of
self and rhs.
In other words this computes [self.x >= rhs.x, self.y >= rhs.y, ..] for all
elements.
Sourcepub fn cmpgt(self, rhs: Self) -> BVec2
pub fn cmpgt(self, rhs: Self) -> BVec2
Returns a vector mask containing the result of a > comparison for each element of
self and rhs.
In other words this computes [self.x > rhs.x, self.y > rhs.y, ..] for all
elements.
Sourcepub fn cmple(self, rhs: Self) -> BVec2
pub fn cmple(self, rhs: Self) -> BVec2
Returns a vector mask containing the result of a <= comparison for each element of
self and rhs.
In other words this computes [self.x <= rhs.x, self.y <= rhs.y, ..] for all
elements.
Sourcepub fn cmplt(self, rhs: Self) -> BVec2
pub fn cmplt(self, rhs: Self) -> BVec2
Returns a vector mask containing the result of a < comparison for each element of
self and rhs.
In other words this computes [self.x < rhs.x, self.y < rhs.y, ..] for all
elements.
Sourcepub fn abs(self) -> Self
pub fn abs(self) -> Self
Returns a vector containing the absolute value of each element of self.
Sourcepub fn signum(self) -> Self
pub fn signum(self) -> Self
Returns a vector with elements representing the sign of self.
0if the number is zero1if the number is positive-1if the number is negative
Sourcepub fn is_negative_bitmask(self) -> u32
pub fn is_negative_bitmask(self) -> u32
Returns a bitmask with the lowest 2 bits set to the sign bits from the elements of self.
A negative element results in a 1 bit and a positive element in a 0 bit. Element x goes
into the first lowest bit, element y into the second, etc.
An element is negative if it has a negative sign, including -0.0, NaNs with negative sign bit and negative infinity.
Sourcepub fn length_squared(self) -> isize
pub fn length_squared(self) -> isize
Computes the squared length of self.
Sourcepub fn distance_squared(self, rhs: Self) -> isize
pub fn distance_squared(self, rhs: Self) -> isize
Compute the squared euclidean distance between two points in space.
Sourcepub fn div_euclid(self, rhs: Self) -> Self
pub fn div_euclid(self, rhs: Self) -> Self
Returns the element-wise quotient of [Euclidean division] of self by rhs.
§Panics
This function will panic if any rhs element is 0 or the division results in overflow.
Sourcepub fn rem_euclid(self, rhs: Self) -> Self
pub fn rem_euclid(self, rhs: Self) -> Self
Returns the element-wise remainder of Euclidean division of self by rhs.
§Panics
This function will panic if any rhs element is 0 or the division results in overflow.
Sourcepub fn manhattan_distance(self, rhs: Self) -> usize
pub fn manhattan_distance(self, rhs: Self) -> usize
Computes the manhattan distance between two points.
§Overflow
This method may overflow if the result is greater than usize::MAX.
See also checked_manhattan_distance.
Sourcepub fn checked_manhattan_distance(self, rhs: Self) -> Option<usize>
pub fn checked_manhattan_distance(self, rhs: Self) -> Option<usize>
Computes the manhattan distance between two points.
This will returns None if the result is greater than usize::MAX.
Sourcepub fn chebyshev_distance(self, rhs: Self) -> usize
pub fn chebyshev_distance(self, rhs: Self) -> usize
Computes the chebyshev distance between two points.
Sourcepub fn perp_dot(self, rhs: Self) -> isize
pub fn perp_dot(self, rhs: Self) -> isize
The perpendicular dot product of self and rhs.
Also known as the wedge product, 2D cross product, and determinant.
Sourcepub fn rotate(self, rhs: Self) -> Self
pub fn rotate(self, rhs: Self) -> Self
Returns rhs rotated by the angle of self. If self is normalized,
then this just rotation. This is what you usually want. Otherwise,
it will be like a rotation with a multiplication by self’s length.
This can be used to rotate by 90 degree increments, e.g. [sin(90), cos(90) = [1, 0] or
[sin(180), cos(180)] = [0, -1].
Sourcepub fn as_i16vec2(self) -> I16Vec2
pub fn as_i16vec2(self) -> I16Vec2
Casts all elements of self to i16.
Sourcepub fn as_u16vec2(self) -> U16Vec2
pub fn as_u16vec2(self) -> U16Vec2
Casts all elements of self to u16.
Sourcepub fn as_i64vec2(self) -> I64Vec2
pub fn as_i64vec2(self) -> I64Vec2
Casts all elements of self to i64.
Sourcepub fn as_u64vec2(self) -> U64Vec2
pub fn as_u64vec2(self) -> U64Vec2
Casts all elements of self to u64.
Sourcepub fn as_usizevec2(self) -> USizeVec2
pub fn as_usizevec2(self) -> USizeVec2
Casts all elements of self to usize.
Sourcepub const fn checked_add(self, rhs: Self) -> Option<Self>
pub const fn checked_add(self, rhs: Self) -> Option<Self>
Returns a vector containing the wrapping addition of self and rhs.
In other words this computes Some([self.x + rhs.x, self.y + rhs.y, ..]) but returns None on any overflow.
Sourcepub const fn checked_sub(self, rhs: Self) -> Option<Self>
pub const fn checked_sub(self, rhs: Self) -> Option<Self>
Returns a vector containing the wrapping subtraction of self and rhs.
In other words this computes Some([self.x - rhs.x, self.y - rhs.y, ..]) but returns None on any overflow.
Sourcepub const fn checked_mul(self, rhs: Self) -> Option<Self>
pub const fn checked_mul(self, rhs: Self) -> Option<Self>
Returns a vector containing the wrapping multiplication of self and rhs.
In other words this computes Some([self.x * rhs.x, self.y * rhs.y, ..]) but returns None on any overflow.
Sourcepub const fn checked_div(self, rhs: Self) -> Option<Self>
pub const fn checked_div(self, rhs: Self) -> Option<Self>
Returns a vector containing the wrapping division of self and rhs.
In other words this computes Some([self.x / rhs.x, self.y / rhs.y, ..]) but returns None on any division by zero.
Sourcepub const fn wrapping_add(self, rhs: Self) -> Self
pub const fn wrapping_add(self, rhs: Self) -> Self
Returns a vector containing the wrapping addition of self and rhs.
In other words this computes [self.x.wrapping_add(rhs.x), self.y.wrapping_add(rhs.y), ..].
Sourcepub const fn wrapping_sub(self, rhs: Self) -> Self
pub const fn wrapping_sub(self, rhs: Self) -> Self
Returns a vector containing the wrapping subtraction of self and rhs.
In other words this computes [self.x.wrapping_sub(rhs.x), self.y.wrapping_sub(rhs.y), ..].
Sourcepub const fn wrapping_mul(self, rhs: Self) -> Self
pub const fn wrapping_mul(self, rhs: Self) -> Self
Returns a vector containing the wrapping multiplication of self and rhs.
In other words this computes [self.x.wrapping_mul(rhs.x), self.y.wrapping_mul(rhs.y), ..].
Sourcepub const fn wrapping_div(self, rhs: Self) -> Self
pub const fn wrapping_div(self, rhs: Self) -> Self
Returns a vector containing the wrapping division of self and rhs.
In other words this computes [self.x.wrapping_div(rhs.x), self.y.wrapping_div(rhs.y), ..].
Sourcepub const fn saturating_add(self, rhs: Self) -> Self
pub const fn saturating_add(self, rhs: Self) -> Self
Returns a vector containing the saturating addition of self and rhs.
In other words this computes [self.x.saturating_add(rhs.x), self.y.saturating_add(rhs.y), ..].
Sourcepub const fn saturating_sub(self, rhs: Self) -> Self
pub const fn saturating_sub(self, rhs: Self) -> Self
Returns a vector containing the saturating subtraction of self and rhs.
In other words this computes [self.x.saturating_sub(rhs.x), self.y.saturating_sub(rhs.y), ..].
Sourcepub const fn saturating_mul(self, rhs: Self) -> Self
pub const fn saturating_mul(self, rhs: Self) -> Self
Returns a vector containing the saturating multiplication of self and rhs.
In other words this computes [self.x.saturating_mul(rhs.x), self.y.saturating_mul(rhs.y), ..].
Sourcepub const fn saturating_div(self, rhs: Self) -> Self
pub const fn saturating_div(self, rhs: Self) -> Self
Returns a vector containing the saturating division of self and rhs.
In other words this computes [self.x.saturating_div(rhs.x), self.y.saturating_div(rhs.y), ..].
Sourcepub const fn checked_add_unsigned(self, rhs: USizeVec2) -> Option<Self>
pub const fn checked_add_unsigned(self, rhs: USizeVec2) -> Option<Self>
Returns a vector containing the wrapping addition of self and unsigned vector rhs.
In other words this computes Some([self.x + rhs.x, self.y + rhs.y, ..]) but returns None on any overflow.
Sourcepub const fn checked_sub_unsigned(self, rhs: USizeVec2) -> Option<Self>
pub const fn checked_sub_unsigned(self, rhs: USizeVec2) -> Option<Self>
Returns a vector containing the wrapping subtraction of self and unsigned vector rhs.
In other words this computes Some([self.x - rhs.x, self.y - rhs.y, ..]) but returns None on any overflow.
Sourcepub const fn wrapping_add_unsigned(self, rhs: USizeVec2) -> Self
pub const fn wrapping_add_unsigned(self, rhs: USizeVec2) -> Self
Returns a vector containing the wrapping addition of self and unsigned vector rhs.
In other words this computes [self.x.wrapping_add_unsigned(rhs.x), self.y.wrapping_add_unsigned(rhs.y), ..].
Sourcepub const fn wrapping_sub_unsigned(self, rhs: USizeVec2) -> Self
pub const fn wrapping_sub_unsigned(self, rhs: USizeVec2) -> Self
Returns a vector containing the wrapping subtraction of self and unsigned vector rhs.
In other words this computes [self.x.wrapping_sub_unsigned(rhs.x), self.y.wrapping_sub_unsigned(rhs.y), ..].
Sourcepub const fn saturating_add_unsigned(self, rhs: USizeVec2) -> Self
pub const fn saturating_add_unsigned(self, rhs: USizeVec2) -> Self
In other words this computes [self.x.saturating_add_unsigned(rhs.x), self.y.saturating_add_unsigned(rhs.y), ..].
Sourcepub const fn saturating_sub_unsigned(self, rhs: USizeVec2) -> Self
pub const fn saturating_sub_unsigned(self, rhs: USizeVec2) -> Self
Returns a vector containing the saturating subtraction of self and unsigned vector rhs.
In other words this computes [self.x.saturating_sub_unsigned(rhs.x), self.y.saturating_sub_unsigned(rhs.y), ..].
Trait Implementations§
Source§impl AddAssign<&ISizeVec2> for ISizeVec2
impl AddAssign<&ISizeVec2> for ISizeVec2
Source§fn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
+= operation. Read moreSource§impl AddAssign<&isize> for ISizeVec2
impl AddAssign<&isize> for ISizeVec2
Source§fn add_assign(&mut self, rhs: &isize)
fn add_assign(&mut self, rhs: &isize)
+= operation. Read moreSource§impl AddAssign<isize> for ISizeVec2
impl AddAssign<isize> for ISizeVec2
Source§fn add_assign(&mut self, rhs: isize)
fn add_assign(&mut self, rhs: isize)
+= operation. Read moreSource§impl AddAssign for ISizeVec2
impl AddAssign for ISizeVec2
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+= operation. Read moreSource§impl BitAndAssign<&ISizeVec2> for ISizeVec2
impl BitAndAssign<&ISizeVec2> for ISizeVec2
Source§fn bitand_assign(&mut self, rhs: &Self)
fn bitand_assign(&mut self, rhs: &Self)
&= operation. Read moreSource§impl BitAndAssign<&isize> for ISizeVec2
impl BitAndAssign<&isize> for ISizeVec2
Source§fn bitand_assign(&mut self, rhs: &isize)
fn bitand_assign(&mut self, rhs: &isize)
&= operation. Read moreSource§impl BitAndAssign<isize> for ISizeVec2
impl BitAndAssign<isize> for ISizeVec2
Source§fn bitand_assign(&mut self, rhs: isize)
fn bitand_assign(&mut self, rhs: isize)
&= operation. Read moreSource§impl BitAndAssign for ISizeVec2
impl BitAndAssign for ISizeVec2
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOrAssign<&ISizeVec2> for ISizeVec2
impl BitOrAssign<&ISizeVec2> for ISizeVec2
Source§fn bitor_assign(&mut self, rhs: &Self)
fn bitor_assign(&mut self, rhs: &Self)
|= operation. Read moreSource§impl BitOrAssign<&isize> for ISizeVec2
impl BitOrAssign<&isize> for ISizeVec2
Source§fn bitor_assign(&mut self, rhs: &isize)
fn bitor_assign(&mut self, rhs: &isize)
|= operation. Read moreSource§impl BitOrAssign<isize> for ISizeVec2
impl BitOrAssign<isize> for ISizeVec2
Source§fn bitor_assign(&mut self, rhs: isize)
fn bitor_assign(&mut self, rhs: isize)
|= operation. Read moreSource§impl BitOrAssign for ISizeVec2
impl BitOrAssign for ISizeVec2
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitXorAssign<&ISizeVec2> for ISizeVec2
impl BitXorAssign<&ISizeVec2> for ISizeVec2
Source§fn bitxor_assign(&mut self, rhs: &Self)
fn bitxor_assign(&mut self, rhs: &Self)
^= operation. Read moreSource§impl BitXorAssign<&isize> for ISizeVec2
impl BitXorAssign<&isize> for ISizeVec2
Source§fn bitxor_assign(&mut self, rhs: &isize)
fn bitxor_assign(&mut self, rhs: &isize)
^= operation. Read moreSource§impl BitXorAssign<isize> for ISizeVec2
impl BitXorAssign<isize> for ISizeVec2
Source§fn bitxor_assign(&mut self, rhs: isize)
fn bitxor_assign(&mut self, rhs: isize)
^= operation. Read moreSource§impl BitXorAssign for ISizeVec2
impl BitXorAssign for ISizeVec2
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl DivAssign<&ISizeVec2> for ISizeVec2
impl DivAssign<&ISizeVec2> for ISizeVec2
Source§fn div_assign(&mut self, rhs: &Self)
fn div_assign(&mut self, rhs: &Self)
/= operation. Read moreSource§impl DivAssign<&isize> for ISizeVec2
impl DivAssign<&isize> for ISizeVec2
Source§fn div_assign(&mut self, rhs: &isize)
fn div_assign(&mut self, rhs: &isize)
/= operation. Read moreSource§impl DivAssign<isize> for ISizeVec2
impl DivAssign<isize> for ISizeVec2
Source§fn div_assign(&mut self, rhs: isize)
fn div_assign(&mut self, rhs: isize)
/= operation. Read moreSource§impl DivAssign for ISizeVec2
impl DivAssign for ISizeVec2
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/= operation. Read moreSource§impl MulAssign<&ISizeVec2> for ISizeVec2
impl MulAssign<&ISizeVec2> for ISizeVec2
Source§fn mul_assign(&mut self, rhs: &Self)
fn mul_assign(&mut self, rhs: &Self)
*= operation. Read moreSource§impl MulAssign<&isize> for ISizeVec2
impl MulAssign<&isize> for ISizeVec2
Source§fn mul_assign(&mut self, rhs: &isize)
fn mul_assign(&mut self, rhs: &isize)
*= operation. Read moreSource§impl MulAssign<isize> for ISizeVec2
impl MulAssign<isize> for ISizeVec2
Source§fn mul_assign(&mut self, rhs: isize)
fn mul_assign(&mut self, rhs: isize)
*= operation. Read moreSource§impl MulAssign for ISizeVec2
impl MulAssign for ISizeVec2
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*= operation. Read moreSource§impl RemAssign<&ISizeVec2> for ISizeVec2
impl RemAssign<&ISizeVec2> for ISizeVec2
Source§fn rem_assign(&mut self, rhs: &Self)
fn rem_assign(&mut self, rhs: &Self)
%= operation. Read moreSource§impl RemAssign<&isize> for ISizeVec2
impl RemAssign<&isize> for ISizeVec2
Source§fn rem_assign(&mut self, rhs: &isize)
fn rem_assign(&mut self, rhs: &isize)
%= operation. Read moreSource§impl RemAssign<isize> for ISizeVec2
impl RemAssign<isize> for ISizeVec2
Source§fn rem_assign(&mut self, rhs: isize)
fn rem_assign(&mut self, rhs: isize)
%= operation. Read moreSource§impl RemAssign for ISizeVec2
impl RemAssign for ISizeVec2
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%= operation. Read moreSource§impl ShlAssign<&i16> for ISizeVec2
impl ShlAssign<&i16> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<= operation. Read moreSource§impl ShlAssign<&i32> for ISizeVec2
impl ShlAssign<&i32> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<= operation. Read moreSource§impl ShlAssign<&i64> for ISizeVec2
impl ShlAssign<&i64> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<= operation. Read moreSource§impl ShlAssign<&i8> for ISizeVec2
impl ShlAssign<&i8> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<= operation. Read moreSource§impl ShlAssign<&u16> for ISizeVec2
impl ShlAssign<&u16> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<= operation. Read moreSource§impl ShlAssign<&u32> for ISizeVec2
impl ShlAssign<&u32> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<= operation. Read moreSource§impl ShlAssign<&u64> for ISizeVec2
impl ShlAssign<&u64> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<= operation. Read moreSource§impl ShlAssign<&u8> for ISizeVec2
impl ShlAssign<&u8> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<= operation. Read moreSource§impl ShlAssign<i16> for ISizeVec2
impl ShlAssign<i16> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<= operation. Read moreSource§impl ShlAssign<i32> for ISizeVec2
impl ShlAssign<i32> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<= operation. Read moreSource§impl ShlAssign<i64> for ISizeVec2
impl ShlAssign<i64> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<= operation. Read moreSource§impl ShlAssign<i8> for ISizeVec2
impl ShlAssign<i8> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<= operation. Read moreSource§impl ShlAssign<u16> for ISizeVec2
impl ShlAssign<u16> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<= operation. Read moreSource§impl ShlAssign<u32> for ISizeVec2
impl ShlAssign<u32> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<= operation. Read moreSource§impl ShlAssign<u64> for ISizeVec2
impl ShlAssign<u64> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<= operation. Read moreSource§impl ShlAssign<u8> for ISizeVec2
impl ShlAssign<u8> for ISizeVec2
Source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<= operation. Read moreSource§impl ShrAssign<&i16> for ISizeVec2
impl ShrAssign<&i16> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>= operation. Read moreSource§impl ShrAssign<&i32> for ISizeVec2
impl ShrAssign<&i32> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>= operation. Read moreSource§impl ShrAssign<&i64> for ISizeVec2
impl ShrAssign<&i64> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>= operation. Read moreSource§impl ShrAssign<&i8> for ISizeVec2
impl ShrAssign<&i8> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>= operation. Read moreSource§impl ShrAssign<&u16> for ISizeVec2
impl ShrAssign<&u16> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>= operation. Read moreSource§impl ShrAssign<&u32> for ISizeVec2
impl ShrAssign<&u32> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>= operation. Read moreSource§impl ShrAssign<&u64> for ISizeVec2
impl ShrAssign<&u64> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>= operation. Read moreSource§impl ShrAssign<&u8> for ISizeVec2
impl ShrAssign<&u8> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>= operation. Read moreSource§impl ShrAssign<i16> for ISizeVec2
impl ShrAssign<i16> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>= operation. Read moreSource§impl ShrAssign<i32> for ISizeVec2
impl ShrAssign<i32> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>= operation. Read moreSource§impl ShrAssign<i64> for ISizeVec2
impl ShrAssign<i64> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>= operation. Read moreSource§impl ShrAssign<i8> for ISizeVec2
impl ShrAssign<i8> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>= operation. Read moreSource§impl ShrAssign<u16> for ISizeVec2
impl ShrAssign<u16> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>= operation. Read moreSource§impl ShrAssign<u32> for ISizeVec2
impl ShrAssign<u32> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>= operation. Read moreSource§impl ShrAssign<u64> for ISizeVec2
impl ShrAssign<u64> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>= operation. Read moreSource§impl ShrAssign<u8> for ISizeVec2
impl ShrAssign<u8> for ISizeVec2
Source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>= operation. Read moreSource§impl SubAssign<&ISizeVec2> for ISizeVec2
impl SubAssign<&ISizeVec2> for ISizeVec2
Source§fn sub_assign(&mut self, rhs: &Self)
fn sub_assign(&mut self, rhs: &Self)
-= operation. Read moreSource§impl SubAssign<&isize> for ISizeVec2
impl SubAssign<&isize> for ISizeVec2
Source§fn sub_assign(&mut self, rhs: &isize)
fn sub_assign(&mut self, rhs: &isize)
-= operation. Read moreSource§impl SubAssign<isize> for ISizeVec2
impl SubAssign<isize> for ISizeVec2
Source§fn sub_assign(&mut self, rhs: isize)
fn sub_assign(&mut self, rhs: isize)
-= operation. Read moreSource§impl SubAssign for ISizeVec2
impl SubAssign for ISizeVec2
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read moreSource§impl Vec2Swizzles for ISizeVec2
impl Vec2Swizzles for ISizeVec2
type Vec3 = ISizeVec3
type Vec4 = ISizeVec4
fn xx(self) -> Self
fn yx(self) -> Self
fn yy(self) -> Self
fn xxx(self) -> ISizeVec3
fn xxy(self) -> ISizeVec3
fn xyx(self) -> ISizeVec3
fn xyy(self) -> ISizeVec3
fn yxx(self) -> ISizeVec3
fn yxy(self) -> ISizeVec3
fn yyx(self) -> ISizeVec3
fn yyy(self) -> ISizeVec3
fn xxxx(self) -> ISizeVec4
fn xxxy(self) -> ISizeVec4
fn xxyx(self) -> ISizeVec4
fn xxyy(self) -> ISizeVec4
fn xyxx(self) -> ISizeVec4
fn xyxy(self) -> ISizeVec4
fn xyyx(self) -> ISizeVec4
fn xyyy(self) -> ISizeVec4
fn yxxx(self) -> ISizeVec4
fn yxxy(self) -> ISizeVec4
fn yxyx(self) -> ISizeVec4
fn yxyy(self) -> ISizeVec4
fn yyxx(self) -> ISizeVec4
fn yyxy(self) -> ISizeVec4
fn yyyx(self) -> ISizeVec4
fn yyyy(self) -> ISizeVec4
fn xy(self) -> Self
impl Copy for ISizeVec2
impl Eq for ISizeVec2
impl Pod for ISizeVec2
impl StructuralPartialEq for ISizeVec2
Auto Trait Implementations§
impl Freeze for ISizeVec2
impl RefUnwindSafe for ISizeVec2
impl Send for ISizeVec2
impl Sync for ISizeVec2
impl Unpin for ISizeVec2
impl UnwindSafe for ISizeVec2
Blanket Implementations§
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<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self.