#[repr(C)]pub struct USizeVec3 {
pub x: usize,
pub y: usize,
pub z: usize,
}
Expand description
A 3-dimensional vector.
Fields§
§x: usize
§y: usize
§z: usize
Implementations§
Source§impl USizeVec3
impl USizeVec3
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: BVec3, if_true: Self, if_false: Self) -> Self
pub fn select(mask: BVec3, 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: [usize; 3]) -> Self
pub const fn from_array(a: [usize; 3]) -> Self
Creates a new vector from an array.
Sourcepub const fn from_slice(slice: &[usize]) -> Self
pub const fn from_slice(slice: &[usize]) -> Self
Creates a vector from the first 3 values in slice
.
§Panics
Panics if slice
is less than 3 elements long.
Sourcepub fn write_to_slice(self, slice: &mut [usize])
pub fn write_to_slice(self, slice: &mut [usize])
Writes the elements of self
to the first 3 elements in slice
.
§Panics
Panics if slice
is less than 3 elements long.
Sourcepub fn extend(self, w: usize) -> USizeVec4
pub fn extend(self, w: usize) -> USizeVec4
Creates a 4D vector from self
and the given w
value.
Sourcepub fn truncate(self) -> USizeVec2
pub fn truncate(self) -> USizeVec2
Creates a 2D vector from the x
and y
elements of self
, discarding z
.
Truncation may also be performed by using self.xy()
.
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 usize::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) -> usize
pub fn min_element(self) -> usize
Returns the horizontal minimum of self
.
In other words this computes min(x, y, ..)
.
Sourcepub fn max_element(self) -> usize
pub fn max_element(self) -> usize
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) -> usize
pub fn element_sum(self) -> usize
Returns the sum of all elements of self
.
In other words, this computes self.x + self.y + ..
.
Sourcepub fn element_product(self) -> usize
pub fn element_product(self) -> usize
Returns the product of all elements of self
.
In other words, this computes self.x * self.y * ..
.
Sourcepub fn cmpeq(self, rhs: Self) -> BVec3
pub fn cmpeq(self, rhs: Self) -> BVec3
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) -> BVec3
pub fn cmpne(self, rhs: Self) -> BVec3
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) -> BVec3
pub fn cmpge(self, rhs: Self) -> BVec3
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) -> BVec3
pub fn cmpgt(self, rhs: Self) -> BVec3
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) -> BVec3
pub fn cmple(self, rhs: Self) -> BVec3
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) -> BVec3
pub fn cmplt(self, rhs: Self) -> BVec3
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 length_squared(self) -> usize
pub fn length_squared(self) -> usize
Computes the squared length of self
.
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 as_i16vec3(&self) -> I16Vec3
pub fn as_i16vec3(&self) -> I16Vec3
Casts all elements of self
to i16
.
Sourcepub fn as_u16vec3(&self) -> U16Vec3
pub fn as_u16vec3(&self) -> U16Vec3
Casts all elements of self
to u16
.
Sourcepub fn as_i64vec3(&self) -> I64Vec3
pub fn as_i64vec3(&self) -> I64Vec3
Casts all elements of self
to i64
.
Sourcepub fn as_u64vec3(&self) -> U64Vec3
pub fn as_u64vec3(&self) -> U64Vec3
Casts all elements of self
to u64
.
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), ..]
.
Trait Implementations§
Source§impl AddAssign<&USizeVec3> for USizeVec3
impl AddAssign<&USizeVec3> for USizeVec3
Source§fn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
+=
operation. Read moreSource§impl AddAssign<&usize> for USizeVec3
impl AddAssign<&usize> for USizeVec3
Source§fn add_assign(&mut self, rhs: &usize)
fn add_assign(&mut self, rhs: &usize)
+=
operation. Read moreSource§impl AddAssign<usize> for USizeVec3
impl AddAssign<usize> for USizeVec3
Source§fn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
+=
operation. Read moreSource§impl AddAssign for USizeVec3
impl AddAssign for USizeVec3
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl BitAndAssign<&USizeVec3> for USizeVec3
impl BitAndAssign<&USizeVec3> for USizeVec3
Source§fn bitand_assign(&mut self, rhs: &Self)
fn bitand_assign(&mut self, rhs: &Self)
&=
operation. Read moreSource§impl BitAndAssign<&usize> for USizeVec3
impl BitAndAssign<&usize> for USizeVec3
Source§fn bitand_assign(&mut self, rhs: &usize)
fn bitand_assign(&mut self, rhs: &usize)
&=
operation. Read moreSource§impl BitAndAssign<usize> for USizeVec3
impl BitAndAssign<usize> for USizeVec3
Source§fn bitand_assign(&mut self, rhs: usize)
fn bitand_assign(&mut self, rhs: usize)
&=
operation. Read moreSource§impl BitAndAssign for USizeVec3
impl BitAndAssign for USizeVec3
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitOrAssign<&USizeVec3> for USizeVec3
impl BitOrAssign<&USizeVec3> for USizeVec3
Source§fn bitor_assign(&mut self, rhs: &Self)
fn bitor_assign(&mut self, rhs: &Self)
|=
operation. Read moreSource§impl BitOrAssign<&usize> for USizeVec3
impl BitOrAssign<&usize> for USizeVec3
Source§fn bitor_assign(&mut self, rhs: &usize)
fn bitor_assign(&mut self, rhs: &usize)
|=
operation. Read moreSource§impl BitOrAssign<usize> for USizeVec3
impl BitOrAssign<usize> for USizeVec3
Source§fn bitor_assign(&mut self, rhs: usize)
fn bitor_assign(&mut self, rhs: usize)
|=
operation. Read moreSource§impl BitOrAssign for USizeVec3
impl BitOrAssign for USizeVec3
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitXorAssign<&USizeVec3> for USizeVec3
impl BitXorAssign<&USizeVec3> for USizeVec3
Source§fn bitxor_assign(&mut self, rhs: &Self)
fn bitxor_assign(&mut self, rhs: &Self)
^=
operation. Read moreSource§impl BitXorAssign<&usize> for USizeVec3
impl BitXorAssign<&usize> for USizeVec3
Source§fn bitxor_assign(&mut self, rhs: &usize)
fn bitxor_assign(&mut self, rhs: &usize)
^=
operation. Read moreSource§impl BitXorAssign<usize> for USizeVec3
impl BitXorAssign<usize> for USizeVec3
Source§fn bitxor_assign(&mut self, rhs: usize)
fn bitxor_assign(&mut self, rhs: usize)
^=
operation. Read moreSource§impl BitXorAssign for USizeVec3
impl BitXorAssign for USizeVec3
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl DivAssign<&USizeVec3> for USizeVec3
impl DivAssign<&USizeVec3> for USizeVec3
Source§fn div_assign(&mut self, rhs: &Self)
fn div_assign(&mut self, rhs: &Self)
/=
operation. Read moreSource§impl DivAssign<&usize> for USizeVec3
impl DivAssign<&usize> for USizeVec3
Source§fn div_assign(&mut self, rhs: &usize)
fn div_assign(&mut self, rhs: &usize)
/=
operation. Read moreSource§impl DivAssign<usize> for USizeVec3
impl DivAssign<usize> for USizeVec3
Source§fn div_assign(&mut self, rhs: usize)
fn div_assign(&mut self, rhs: usize)
/=
operation. Read moreSource§impl DivAssign for USizeVec3
impl DivAssign for USizeVec3
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl MulAssign<&USizeVec3> for USizeVec3
impl MulAssign<&USizeVec3> for USizeVec3
Source§fn mul_assign(&mut self, rhs: &Self)
fn mul_assign(&mut self, rhs: &Self)
*=
operation. Read moreSource§impl MulAssign<&usize> for USizeVec3
impl MulAssign<&usize> for USizeVec3
Source§fn mul_assign(&mut self, rhs: &usize)
fn mul_assign(&mut self, rhs: &usize)
*=
operation. Read moreSource§impl MulAssign<usize> for USizeVec3
impl MulAssign<usize> for USizeVec3
Source§fn mul_assign(&mut self, rhs: usize)
fn mul_assign(&mut self, rhs: usize)
*=
operation. Read moreSource§impl MulAssign for USizeVec3
impl MulAssign for USizeVec3
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl RemAssign<&USizeVec3> for USizeVec3
impl RemAssign<&USizeVec3> for USizeVec3
Source§fn rem_assign(&mut self, rhs: &Self)
fn rem_assign(&mut self, rhs: &Self)
%=
operation. Read moreSource§impl RemAssign<&usize> for USizeVec3
impl RemAssign<&usize> for USizeVec3
Source§fn rem_assign(&mut self, rhs: &usize)
fn rem_assign(&mut self, rhs: &usize)
%=
operation. Read moreSource§impl RemAssign<usize> for USizeVec3
impl RemAssign<usize> for USizeVec3
Source§fn rem_assign(&mut self, rhs: usize)
fn rem_assign(&mut self, rhs: usize)
%=
operation. Read moreSource§impl RemAssign for USizeVec3
impl RemAssign for USizeVec3
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%=
operation. Read moreSource§impl ShlAssign<&i16> for USizeVec3
impl ShlAssign<&i16> for USizeVec3
Source§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<=
operation. Read moreSource§impl ShlAssign<&i32> for USizeVec3
impl ShlAssign<&i32> for USizeVec3
Source§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<=
operation. Read moreSource§impl ShlAssign<&i64> for USizeVec3
impl ShlAssign<&i64> for USizeVec3
Source§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<=
operation. Read moreSource§impl ShlAssign<&i8> for USizeVec3
impl ShlAssign<&i8> for USizeVec3
Source§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<=
operation. Read moreSource§impl ShlAssign<&u16> for USizeVec3
impl ShlAssign<&u16> for USizeVec3
Source§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<=
operation. Read moreSource§impl ShlAssign<&u32> for USizeVec3
impl ShlAssign<&u32> for USizeVec3
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<=
operation. Read moreSource§impl ShlAssign<&u64> for USizeVec3
impl ShlAssign<&u64> for USizeVec3
Source§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<=
operation. Read moreSource§impl ShlAssign<&u8> for USizeVec3
impl ShlAssign<&u8> for USizeVec3
Source§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<=
operation. Read moreSource§impl ShlAssign<i16> for USizeVec3
impl ShlAssign<i16> for USizeVec3
Source§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<=
operation. Read moreSource§impl ShlAssign<i32> for USizeVec3
impl ShlAssign<i32> for USizeVec3
Source§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<=
operation. Read moreSource§impl ShlAssign<i64> for USizeVec3
impl ShlAssign<i64> for USizeVec3
Source§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<=
operation. Read moreSource§impl ShlAssign<i8> for USizeVec3
impl ShlAssign<i8> for USizeVec3
Source§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<=
operation. Read moreSource§impl ShlAssign<u16> for USizeVec3
impl ShlAssign<u16> for USizeVec3
Source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<=
operation. Read moreSource§impl ShlAssign<u32> for USizeVec3
impl ShlAssign<u32> for USizeVec3
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<=
operation. Read moreSource§impl ShlAssign<u64> for USizeVec3
impl ShlAssign<u64> for USizeVec3
Source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<=
operation. Read moreSource§impl ShlAssign<u8> for USizeVec3
impl ShlAssign<u8> for USizeVec3
Source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<=
operation. Read moreSource§impl ShrAssign<&i16> for USizeVec3
impl ShrAssign<&i16> for USizeVec3
Source§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>=
operation. Read moreSource§impl ShrAssign<&i32> for USizeVec3
impl ShrAssign<&i32> for USizeVec3
Source§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>=
operation. Read moreSource§impl ShrAssign<&i64> for USizeVec3
impl ShrAssign<&i64> for USizeVec3
Source§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>=
operation. Read moreSource§impl ShrAssign<&i8> for USizeVec3
impl ShrAssign<&i8> for USizeVec3
Source§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>=
operation. Read moreSource§impl ShrAssign<&u16> for USizeVec3
impl ShrAssign<&u16> for USizeVec3
Source§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>=
operation. Read moreSource§impl ShrAssign<&u32> for USizeVec3
impl ShrAssign<&u32> for USizeVec3
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>=
operation. Read moreSource§impl ShrAssign<&u64> for USizeVec3
impl ShrAssign<&u64> for USizeVec3
Source§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>=
operation. Read moreSource§impl ShrAssign<&u8> for USizeVec3
impl ShrAssign<&u8> for USizeVec3
Source§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>=
operation. Read moreSource§impl ShrAssign<i16> for USizeVec3
impl ShrAssign<i16> for USizeVec3
Source§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>=
operation. Read moreSource§impl ShrAssign<i32> for USizeVec3
impl ShrAssign<i32> for USizeVec3
Source§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>=
operation. Read moreSource§impl ShrAssign<i64> for USizeVec3
impl ShrAssign<i64> for USizeVec3
Source§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>=
operation. Read moreSource§impl ShrAssign<i8> for USizeVec3
impl ShrAssign<i8> for USizeVec3
Source§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>=
operation. Read moreSource§impl ShrAssign<u16> for USizeVec3
impl ShrAssign<u16> for USizeVec3
Source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>=
operation. Read moreSource§impl ShrAssign<u32> for USizeVec3
impl ShrAssign<u32> for USizeVec3
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>=
operation. Read moreSource§impl ShrAssign<u64> for USizeVec3
impl ShrAssign<u64> for USizeVec3
Source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>=
operation. Read moreSource§impl ShrAssign<u8> for USizeVec3
impl ShrAssign<u8> for USizeVec3
Source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>=
operation. Read moreSource§impl SubAssign<&USizeVec3> for USizeVec3
impl SubAssign<&USizeVec3> for USizeVec3
Source§fn sub_assign(&mut self, rhs: &Self)
fn sub_assign(&mut self, rhs: &Self)
-=
operation. Read moreSource§impl SubAssign<&usize> for USizeVec3
impl SubAssign<&usize> for USizeVec3
Source§fn sub_assign(&mut self, rhs: &usize)
fn sub_assign(&mut self, rhs: &usize)
-=
operation. Read moreSource§impl SubAssign<usize> for USizeVec3
impl SubAssign<usize> for USizeVec3
Source§fn sub_assign(&mut self, rhs: usize)
fn sub_assign(&mut self, rhs: usize)
-=
operation. Read moreSource§impl SubAssign for USizeVec3
impl SubAssign for USizeVec3
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl Vec3Swizzles for USizeVec3
impl Vec3Swizzles for USizeVec3
type Vec2 = USizeVec2
type Vec4 = USizeVec4
fn xx(self) -> USizeVec2
fn xy(self) -> USizeVec2
fn with_xy(self, rhs: USizeVec2) -> Self
fn xz(self) -> USizeVec2
fn with_xz(self, rhs: USizeVec2) -> Self
fn yx(self) -> USizeVec2
fn with_yx(self, rhs: USizeVec2) -> Self
fn yy(self) -> USizeVec2
fn yz(self) -> USizeVec2
fn with_yz(self, rhs: USizeVec2) -> Self
fn zx(self) -> USizeVec2
fn with_zx(self, rhs: USizeVec2) -> Self
fn zy(self) -> USizeVec2
fn with_zy(self, rhs: USizeVec2) -> Self
fn zz(self) -> USizeVec2
fn xxx(self) -> Self
fn xxy(self) -> Self
fn xxz(self) -> Self
fn xyx(self) -> Self
fn xyy(self) -> Self
fn xzx(self) -> Self
fn xzy(self) -> Self
fn xzz(self) -> Self
fn yxx(self) -> Self
fn yxy(self) -> Self
fn yxz(self) -> Self
fn yyx(self) -> Self
fn yyy(self) -> Self
fn yyz(self) -> Self
fn yzx(self) -> Self
fn yzy(self) -> Self
fn yzz(self) -> Self
fn zxx(self) -> Self
fn zxy(self) -> Self
fn zxz(self) -> Self
fn zyx(self) -> Self
fn zyy(self) -> Self
fn zyz(self) -> Self
fn zzx(self) -> Self
fn zzy(self) -> Self
fn zzz(self) -> Self
fn xxxx(self) -> USizeVec4
fn xxxy(self) -> USizeVec4
fn xxxz(self) -> USizeVec4
fn xxyx(self) -> USizeVec4
fn xxyy(self) -> USizeVec4
fn xxyz(self) -> USizeVec4
fn xxzx(self) -> USizeVec4
fn xxzy(self) -> USizeVec4
fn xxzz(self) -> USizeVec4
fn xyxx(self) -> USizeVec4
fn xyxy(self) -> USizeVec4
fn xyxz(self) -> USizeVec4
fn xyyx(self) -> USizeVec4
fn xyyy(self) -> USizeVec4
fn xyyz(self) -> USizeVec4
fn xyzx(self) -> USizeVec4
fn xyzy(self) -> USizeVec4
fn xyzz(self) -> USizeVec4
fn xzxx(self) -> USizeVec4
fn xzxy(self) -> USizeVec4
fn xzxz(self) -> USizeVec4
fn xzyx(self) -> USizeVec4
fn xzyy(self) -> USizeVec4
fn xzyz(self) -> USizeVec4
fn xzzx(self) -> USizeVec4
fn xzzy(self) -> USizeVec4
fn xzzz(self) -> USizeVec4
fn yxxx(self) -> USizeVec4
fn yxxy(self) -> USizeVec4
fn yxxz(self) -> USizeVec4
fn yxyx(self) -> USizeVec4
fn yxyy(self) -> USizeVec4
fn yxyz(self) -> USizeVec4
fn yxzx(self) -> USizeVec4
fn yxzy(self) -> USizeVec4
fn yxzz(self) -> USizeVec4
fn yyxx(self) -> USizeVec4
fn yyxy(self) -> USizeVec4
fn yyxz(self) -> USizeVec4
fn yyyx(self) -> USizeVec4
fn yyyy(self) -> USizeVec4
fn yyyz(self) -> USizeVec4
fn yyzx(self) -> USizeVec4
fn yyzy(self) -> USizeVec4
fn yyzz(self) -> USizeVec4
fn yzxx(self) -> USizeVec4
fn yzxy(self) -> USizeVec4
fn yzxz(self) -> USizeVec4
fn yzyx(self) -> USizeVec4
fn yzyy(self) -> USizeVec4
fn yzyz(self) -> USizeVec4
fn yzzx(self) -> USizeVec4
fn yzzy(self) -> USizeVec4
fn yzzz(self) -> USizeVec4
fn zxxx(self) -> USizeVec4
fn zxxy(self) -> USizeVec4
fn zxxz(self) -> USizeVec4
fn zxyx(self) -> USizeVec4
fn zxyy(self) -> USizeVec4
fn zxyz(self) -> USizeVec4
fn zxzx(self) -> USizeVec4
fn zxzy(self) -> USizeVec4
fn zxzz(self) -> USizeVec4
fn zyxx(self) -> USizeVec4
fn zyxy(self) -> USizeVec4
fn zyxz(self) -> USizeVec4
fn zyyx(self) -> USizeVec4
fn zyyy(self) -> USizeVec4
fn zyyz(self) -> USizeVec4
fn zyzx(self) -> USizeVec4
fn zyzy(self) -> USizeVec4
fn zyzz(self) -> USizeVec4
fn zzxx(self) -> USizeVec4
fn zzxy(self) -> USizeVec4
fn zzxz(self) -> USizeVec4
fn zzyx(self) -> USizeVec4
fn zzyy(self) -> USizeVec4
fn zzyz(self) -> USizeVec4
fn zzzx(self) -> USizeVec4
fn zzzy(self) -> USizeVec4
fn zzzz(self) -> USizeVec4
fn xyz(self) -> Self
impl Copy for USizeVec3
impl Eq for USizeVec3
impl Pod for USizeVec3
impl StructuralPartialEq for USizeVec3
Auto Trait Implementations§
impl Freeze for USizeVec3
impl RefUnwindSafe for USizeVec3
impl Send for USizeVec3
impl Sync for USizeVec3
impl Unpin for USizeVec3
impl UnwindSafe for USizeVec3
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
.