#[repr(C)]pub struct U16Vec4 {
pub x: u16,
pub y: u16,
pub z: u16,
pub w: u16,
}
Expand description
A 4-dimensional vector.
Fields§
§x: u16
§y: u16
§z: u16
§w: u16
Implementations§
Source§impl U16Vec4
impl U16Vec4
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: BVec4, if_true: Self, if_false: Self) -> Self
pub fn select(mask: BVec4, 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: [u16; 4]) -> Self
pub const fn from_array(a: [u16; 4]) -> Self
Creates a new vector from an array.
Sourcepub const fn from_slice(slice: &[u16]) -> Self
pub const fn from_slice(slice: &[u16]) -> Self
Creates a vector from the first 4 values in slice
.
§Panics
Panics if slice
is less than 4 elements long.
Sourcepub fn write_to_slice(self, slice: &mut [u16])
pub fn write_to_slice(self, slice: &mut [u16])
Writes the elements of self
to the first 4 elements in slice
.
§Panics
Panics if slice
is less than 4 elements long.
Sourcepub fn truncate(self) -> U16Vec3
pub fn truncate(self) -> U16Vec3
Creates a 3D vector from the x
, y
and z
elements of self
, discarding w
.
Truncation to U16Vec3
may also be performed by using self.xyz()
.
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 u16::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) -> u16
pub fn min_element(self) -> u16
Returns the horizontal minimum of self
.
In other words this computes min(x, y, ..)
.
Sourcepub fn max_element(self) -> u16
pub fn max_element(self) -> u16
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) -> u16
pub fn element_sum(self) -> u16
Returns the sum of all elements of self
.
In other words, this computes self.x + self.y + ..
.
Sourcepub fn element_product(self) -> u16
pub fn element_product(self) -> u16
Returns the product of all elements of self
.
In other words, this computes self.x * self.y * ..
.
Sourcepub fn cmpeq(self, rhs: Self) -> BVec4
pub fn cmpeq(self, rhs: Self) -> BVec4
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) -> BVec4
pub fn cmpne(self, rhs: Self) -> BVec4
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) -> BVec4
pub fn cmpge(self, rhs: Self) -> BVec4
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) -> BVec4
pub fn cmpgt(self, rhs: Self) -> BVec4
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) -> BVec4
pub fn cmple(self, rhs: Self) -> BVec4
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) -> BVec4
pub fn cmplt(self, rhs: Self) -> BVec4
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) -> u16
pub fn length_squared(self) -> u16
Computes the squared length of self
.
Sourcepub fn manhattan_distance(self, rhs: Self) -> u16
pub fn manhattan_distance(self, rhs: Self) -> u16
Computes the manhattan distance between two points.
§Overflow
This method may overflow if the result is greater than u16::MAX
.
See also checked_manhattan_distance
.
Sourcepub fn checked_manhattan_distance(self, rhs: Self) -> Option<u16>
pub fn checked_manhattan_distance(self, rhs: Self) -> Option<u16>
Computes the manhattan distance between two points.
This will returns None
if the result is greater than u16::MAX
.
Sourcepub fn chebyshev_distance(self, rhs: Self) -> u16
pub fn chebyshev_distance(self, rhs: Self) -> u16
Computes the chebyshev distance between two points.
Sourcepub fn as_i16vec4(&self) -> I16Vec4
pub fn as_i16vec4(&self) -> I16Vec4
Casts all elements of self
to i16
.
Sourcepub fn as_i64vec4(&self) -> I64Vec4
pub fn as_i64vec4(&self) -> I64Vec4
Casts all elements of self
to i64
.
Sourcepub fn as_u64vec4(&self) -> U64Vec4
pub fn as_u64vec4(&self) -> U64Vec4
Casts all elements of self
to u64
.
Sourcepub fn as_usizevec4(&self) -> USizeVec4
pub fn as_usizevec4(&self) -> USizeVec4
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_signed(self, rhs: I16Vec4) -> Option<Self>
pub const fn checked_add_signed(self, rhs: I16Vec4) -> Option<Self>
Returns a vector containing the wrapping addition of self
and signed 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_signed(self, rhs: I16Vec4) -> Self
pub const fn wrapping_add_signed(self, rhs: I16Vec4) -> Self
Returns a vector containing the wrapping addition of self
and signed vector rhs
.
In other words this computes [self.x.wrapping_add_signed(rhs.x), self.y.wrapping_add_signed(rhs.y), ..]
.
Sourcepub const fn saturating_add_signed(self, rhs: I16Vec4) -> Self
pub const fn saturating_add_signed(self, rhs: I16Vec4) -> Self
Returns a vector containing the saturating addition of self
and signed vector rhs
.
In other words this computes [self.x.saturating_add_signed(rhs.x), self.y.saturating_add_signed(rhs.y), ..]
.
Trait Implementations§
Source§impl AddAssign<&U16Vec4> for U16Vec4
impl AddAssign<&U16Vec4> for U16Vec4
Source§fn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
+=
operation. Read moreSource§impl AddAssign<&u16> for U16Vec4
impl AddAssign<&u16> for U16Vec4
Source§fn add_assign(&mut self, rhs: &u16)
fn add_assign(&mut self, rhs: &u16)
+=
operation. Read moreSource§impl AddAssign<u16> for U16Vec4
impl AddAssign<u16> for U16Vec4
Source§fn add_assign(&mut self, rhs: u16)
fn add_assign(&mut self, rhs: u16)
+=
operation. Read moreSource§impl AddAssign for U16Vec4
impl AddAssign for U16Vec4
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl BitAndAssign<&U16Vec4> for U16Vec4
impl BitAndAssign<&U16Vec4> for U16Vec4
Source§fn bitand_assign(&mut self, rhs: &Self)
fn bitand_assign(&mut self, rhs: &Self)
&=
operation. Read moreSource§impl BitAndAssign<&u16> for U16Vec4
impl BitAndAssign<&u16> for U16Vec4
Source§fn bitand_assign(&mut self, rhs: &u16)
fn bitand_assign(&mut self, rhs: &u16)
&=
operation. Read moreSource§impl BitAndAssign<u16> for U16Vec4
impl BitAndAssign<u16> for U16Vec4
Source§fn bitand_assign(&mut self, rhs: u16)
fn bitand_assign(&mut self, rhs: u16)
&=
operation. Read moreSource§impl BitAndAssign for U16Vec4
impl BitAndAssign for U16Vec4
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitOrAssign<&U16Vec4> for U16Vec4
impl BitOrAssign<&U16Vec4> for U16Vec4
Source§fn bitor_assign(&mut self, rhs: &Self)
fn bitor_assign(&mut self, rhs: &Self)
|=
operation. Read moreSource§impl BitOrAssign<&u16> for U16Vec4
impl BitOrAssign<&u16> for U16Vec4
Source§fn bitor_assign(&mut self, rhs: &u16)
fn bitor_assign(&mut self, rhs: &u16)
|=
operation. Read moreSource§impl BitOrAssign<u16> for U16Vec4
impl BitOrAssign<u16> for U16Vec4
Source§fn bitor_assign(&mut self, rhs: u16)
fn bitor_assign(&mut self, rhs: u16)
|=
operation. Read moreSource§impl BitOrAssign for U16Vec4
impl BitOrAssign for U16Vec4
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitXorAssign<&U16Vec4> for U16Vec4
impl BitXorAssign<&U16Vec4> for U16Vec4
Source§fn bitxor_assign(&mut self, rhs: &Self)
fn bitxor_assign(&mut self, rhs: &Self)
^=
operation. Read moreSource§impl BitXorAssign<&u16> for U16Vec4
impl BitXorAssign<&u16> for U16Vec4
Source§fn bitxor_assign(&mut self, rhs: &u16)
fn bitxor_assign(&mut self, rhs: &u16)
^=
operation. Read moreSource§impl BitXorAssign<u16> for U16Vec4
impl BitXorAssign<u16> for U16Vec4
Source§fn bitxor_assign(&mut self, rhs: u16)
fn bitxor_assign(&mut self, rhs: u16)
^=
operation. Read moreSource§impl BitXorAssign for U16Vec4
impl BitXorAssign for U16Vec4
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl DivAssign<&U16Vec4> for U16Vec4
impl DivAssign<&U16Vec4> for U16Vec4
Source§fn div_assign(&mut self, rhs: &Self)
fn div_assign(&mut self, rhs: &Self)
/=
operation. Read moreSource§impl DivAssign<&u16> for U16Vec4
impl DivAssign<&u16> for U16Vec4
Source§fn div_assign(&mut self, rhs: &u16)
fn div_assign(&mut self, rhs: &u16)
/=
operation. Read moreSource§impl DivAssign<u16> for U16Vec4
impl DivAssign<u16> for U16Vec4
Source§fn div_assign(&mut self, rhs: u16)
fn div_assign(&mut self, rhs: u16)
/=
operation. Read moreSource§impl DivAssign for U16Vec4
impl DivAssign for U16Vec4
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl MulAssign<&U16Vec4> for U16Vec4
impl MulAssign<&U16Vec4> for U16Vec4
Source§fn mul_assign(&mut self, rhs: &Self)
fn mul_assign(&mut self, rhs: &Self)
*=
operation. Read moreSource§impl MulAssign<&u16> for U16Vec4
impl MulAssign<&u16> for U16Vec4
Source§fn mul_assign(&mut self, rhs: &u16)
fn mul_assign(&mut self, rhs: &u16)
*=
operation. Read moreSource§impl MulAssign<u16> for U16Vec4
impl MulAssign<u16> for U16Vec4
Source§fn mul_assign(&mut self, rhs: u16)
fn mul_assign(&mut self, rhs: u16)
*=
operation. Read moreSource§impl MulAssign for U16Vec4
impl MulAssign for U16Vec4
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl RemAssign<&U16Vec4> for U16Vec4
impl RemAssign<&U16Vec4> for U16Vec4
Source§fn rem_assign(&mut self, rhs: &Self)
fn rem_assign(&mut self, rhs: &Self)
%=
operation. Read moreSource§impl RemAssign<&u16> for U16Vec4
impl RemAssign<&u16> for U16Vec4
Source§fn rem_assign(&mut self, rhs: &u16)
fn rem_assign(&mut self, rhs: &u16)
%=
operation. Read moreSource§impl RemAssign<u16> for U16Vec4
impl RemAssign<u16> for U16Vec4
Source§fn rem_assign(&mut self, rhs: u16)
fn rem_assign(&mut self, rhs: u16)
%=
operation. Read moreSource§impl RemAssign for U16Vec4
impl RemAssign for U16Vec4
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%=
operation. Read moreSource§impl ShlAssign<&i16> for U16Vec4
impl ShlAssign<&i16> for U16Vec4
Source§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<=
operation. Read moreSource§impl ShlAssign<&i32> for U16Vec4
impl ShlAssign<&i32> for U16Vec4
Source§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<=
operation. Read moreSource§impl ShlAssign<&i64> for U16Vec4
impl ShlAssign<&i64> for U16Vec4
Source§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<=
operation. Read moreSource§impl ShlAssign<&i8> for U16Vec4
impl ShlAssign<&i8> for U16Vec4
Source§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<=
operation. Read moreSource§impl ShlAssign<&u16> for U16Vec4
impl ShlAssign<&u16> for U16Vec4
Source§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<=
operation. Read moreSource§impl ShlAssign<&u32> for U16Vec4
impl ShlAssign<&u32> for U16Vec4
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<=
operation. Read moreSource§impl ShlAssign<&u64> for U16Vec4
impl ShlAssign<&u64> for U16Vec4
Source§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<=
operation. Read moreSource§impl ShlAssign<&u8> for U16Vec4
impl ShlAssign<&u8> for U16Vec4
Source§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<=
operation. Read moreSource§impl ShlAssign<i16> for U16Vec4
impl ShlAssign<i16> for U16Vec4
Source§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<=
operation. Read moreSource§impl ShlAssign<i32> for U16Vec4
impl ShlAssign<i32> for U16Vec4
Source§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<=
operation. Read moreSource§impl ShlAssign<i64> for U16Vec4
impl ShlAssign<i64> for U16Vec4
Source§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<=
operation. Read moreSource§impl ShlAssign<i8> for U16Vec4
impl ShlAssign<i8> for U16Vec4
Source§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<=
operation. Read moreSource§impl ShlAssign<u16> for U16Vec4
impl ShlAssign<u16> for U16Vec4
Source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<=
operation. Read moreSource§impl ShlAssign<u32> for U16Vec4
impl ShlAssign<u32> for U16Vec4
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<=
operation. Read moreSource§impl ShlAssign<u64> for U16Vec4
impl ShlAssign<u64> for U16Vec4
Source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<=
operation. Read moreSource§impl ShlAssign<u8> for U16Vec4
impl ShlAssign<u8> for U16Vec4
Source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<=
operation. Read moreSource§impl ShrAssign<&i16> for U16Vec4
impl ShrAssign<&i16> for U16Vec4
Source§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>=
operation. Read moreSource§impl ShrAssign<&i32> for U16Vec4
impl ShrAssign<&i32> for U16Vec4
Source§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>=
operation. Read moreSource§impl ShrAssign<&i64> for U16Vec4
impl ShrAssign<&i64> for U16Vec4
Source§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>=
operation. Read moreSource§impl ShrAssign<&i8> for U16Vec4
impl ShrAssign<&i8> for U16Vec4
Source§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>=
operation. Read moreSource§impl ShrAssign<&u16> for U16Vec4
impl ShrAssign<&u16> for U16Vec4
Source§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>=
operation. Read moreSource§impl ShrAssign<&u32> for U16Vec4
impl ShrAssign<&u32> for U16Vec4
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>=
operation. Read moreSource§impl ShrAssign<&u64> for U16Vec4
impl ShrAssign<&u64> for U16Vec4
Source§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>=
operation. Read moreSource§impl ShrAssign<&u8> for U16Vec4
impl ShrAssign<&u8> for U16Vec4
Source§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>=
operation. Read moreSource§impl ShrAssign<i16> for U16Vec4
impl ShrAssign<i16> for U16Vec4
Source§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>=
operation. Read moreSource§impl ShrAssign<i32> for U16Vec4
impl ShrAssign<i32> for U16Vec4
Source§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>=
operation. Read moreSource§impl ShrAssign<i64> for U16Vec4
impl ShrAssign<i64> for U16Vec4
Source§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>=
operation. Read moreSource§impl ShrAssign<i8> for U16Vec4
impl ShrAssign<i8> for U16Vec4
Source§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>=
operation. Read moreSource§impl ShrAssign<u16> for U16Vec4
impl ShrAssign<u16> for U16Vec4
Source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>=
operation. Read moreSource§impl ShrAssign<u32> for U16Vec4
impl ShrAssign<u32> for U16Vec4
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>=
operation. Read moreSource§impl ShrAssign<u64> for U16Vec4
impl ShrAssign<u64> for U16Vec4
Source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>=
operation. Read moreSource§impl ShrAssign<u8> for U16Vec4
impl ShrAssign<u8> for U16Vec4
Source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>=
operation. Read moreSource§impl SubAssign<&U16Vec4> for U16Vec4
impl SubAssign<&U16Vec4> for U16Vec4
Source§fn sub_assign(&mut self, rhs: &Self)
fn sub_assign(&mut self, rhs: &Self)
-=
operation. Read moreSource§impl SubAssign<&u16> for U16Vec4
impl SubAssign<&u16> for U16Vec4
Source§fn sub_assign(&mut self, rhs: &u16)
fn sub_assign(&mut self, rhs: &u16)
-=
operation. Read moreSource§impl SubAssign<u16> for U16Vec4
impl SubAssign<u16> for U16Vec4
Source§fn sub_assign(&mut self, rhs: u16)
fn sub_assign(&mut self, rhs: u16)
-=
operation. Read moreSource§impl SubAssign for U16Vec4
impl SubAssign for U16Vec4
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl Vec4Swizzles for U16Vec4
impl Vec4Swizzles for U16Vec4
type Vec2 = U16Vec2
type Vec3 = U16Vec3
fn xx(self) -> U16Vec2
fn xy(self) -> U16Vec2
fn with_xy(self, rhs: U16Vec2) -> Self
fn xz(self) -> U16Vec2
fn with_xz(self, rhs: U16Vec2) -> Self
fn xw(self) -> U16Vec2
fn with_xw(self, rhs: U16Vec2) -> Self
fn yx(self) -> U16Vec2
fn with_yx(self, rhs: U16Vec2) -> Self
fn yy(self) -> U16Vec2
fn yz(self) -> U16Vec2
fn with_yz(self, rhs: U16Vec2) -> Self
fn yw(self) -> U16Vec2
fn with_yw(self, rhs: U16Vec2) -> Self
fn zx(self) -> U16Vec2
fn with_zx(self, rhs: U16Vec2) -> Self
fn zy(self) -> U16Vec2
fn with_zy(self, rhs: U16Vec2) -> Self
fn zz(self) -> U16Vec2
fn zw(self) -> U16Vec2
fn with_zw(self, rhs: U16Vec2) -> Self
fn wx(self) -> U16Vec2
fn with_wx(self, rhs: U16Vec2) -> Self
fn wy(self) -> U16Vec2
fn with_wy(self, rhs: U16Vec2) -> Self
fn wz(self) -> U16Vec2
fn with_wz(self, rhs: U16Vec2) -> Self
fn ww(self) -> U16Vec2
fn xxx(self) -> U16Vec3
fn xxy(self) -> U16Vec3
fn xxz(self) -> U16Vec3
fn xxw(self) -> U16Vec3
fn xyx(self) -> U16Vec3
fn xyy(self) -> U16Vec3
fn xyz(self) -> U16Vec3
fn with_xyz(self, rhs: U16Vec3) -> Self
fn xyw(self) -> U16Vec3
fn with_xyw(self, rhs: U16Vec3) -> Self
fn xzx(self) -> U16Vec3
fn xzy(self) -> U16Vec3
fn with_xzy(self, rhs: U16Vec3) -> Self
fn xzz(self) -> U16Vec3
fn xzw(self) -> U16Vec3
fn with_xzw(self, rhs: U16Vec3) -> Self
fn xwx(self) -> U16Vec3
fn xwy(self) -> U16Vec3
fn with_xwy(self, rhs: U16Vec3) -> Self
fn xwz(self) -> U16Vec3
fn with_xwz(self, rhs: U16Vec3) -> Self
fn xww(self) -> U16Vec3
fn yxx(self) -> U16Vec3
fn yxy(self) -> U16Vec3
fn yxz(self) -> U16Vec3
fn with_yxz(self, rhs: U16Vec3) -> Self
fn yxw(self) -> U16Vec3
fn with_yxw(self, rhs: U16Vec3) -> Self
fn yyx(self) -> U16Vec3
fn yyy(self) -> U16Vec3
fn yyz(self) -> U16Vec3
fn yyw(self) -> U16Vec3
fn yzx(self) -> U16Vec3
fn with_yzx(self, rhs: U16Vec3) -> Self
fn yzy(self) -> U16Vec3
fn yzz(self) -> U16Vec3
fn yzw(self) -> U16Vec3
fn with_yzw(self, rhs: U16Vec3) -> Self
fn ywx(self) -> U16Vec3
fn with_ywx(self, rhs: U16Vec3) -> Self
fn ywy(self) -> U16Vec3
fn ywz(self) -> U16Vec3
fn with_ywz(self, rhs: U16Vec3) -> Self
fn yww(self) -> U16Vec3
fn zxx(self) -> U16Vec3
fn zxy(self) -> U16Vec3
fn with_zxy(self, rhs: U16Vec3) -> Self
fn zxz(self) -> U16Vec3
fn zxw(self) -> U16Vec3
fn with_zxw(self, rhs: U16Vec3) -> Self
fn zyx(self) -> U16Vec3
fn with_zyx(self, rhs: U16Vec3) -> Self
fn zyy(self) -> U16Vec3
fn zyz(self) -> U16Vec3
fn zyw(self) -> U16Vec3
fn with_zyw(self, rhs: U16Vec3) -> Self
fn zzx(self) -> U16Vec3
fn zzy(self) -> U16Vec3
fn zzz(self) -> U16Vec3
fn zzw(self) -> U16Vec3
fn zwx(self) -> U16Vec3
fn with_zwx(self, rhs: U16Vec3) -> Self
fn zwy(self) -> U16Vec3
fn with_zwy(self, rhs: U16Vec3) -> Self
fn zwz(self) -> U16Vec3
fn zww(self) -> U16Vec3
fn wxx(self) -> U16Vec3
fn wxy(self) -> U16Vec3
fn with_wxy(self, rhs: U16Vec3) -> Self
fn wxz(self) -> U16Vec3
fn with_wxz(self, rhs: U16Vec3) -> Self
fn wxw(self) -> U16Vec3
fn wyx(self) -> U16Vec3
fn with_wyx(self, rhs: U16Vec3) -> Self
fn wyy(self) -> U16Vec3
fn wyz(self) -> U16Vec3
fn with_wyz(self, rhs: U16Vec3) -> Self
fn wyw(self) -> U16Vec3
fn wzx(self) -> U16Vec3
fn with_wzx(self, rhs: U16Vec3) -> Self
fn wzy(self) -> U16Vec3
fn with_wzy(self, rhs: U16Vec3) -> Self
fn wzz(self) -> U16Vec3
fn wzw(self) -> U16Vec3
fn wwx(self) -> U16Vec3
fn wwy(self) -> U16Vec3
fn wwz(self) -> U16Vec3
fn www(self) -> U16Vec3
fn xxxx(self) -> Self
fn xxxy(self) -> Self
fn xxxz(self) -> Self
fn xxxw(self) -> Self
fn xxyx(self) -> Self
fn xxyy(self) -> Self
fn xxyz(self) -> Self
fn xxyw(self) -> Self
fn xxzx(self) -> Self
fn xxzy(self) -> Self
fn xxzz(self) -> Self
fn xxzw(self) -> Self
fn xxwx(self) -> Self
fn xxwy(self) -> Self
fn xxwz(self) -> Self
fn xxww(self) -> Self
fn xyxx(self) -> Self
fn xyxy(self) -> Self
fn xyxz(self) -> Self
fn xyxw(self) -> Self
fn xyyx(self) -> Self
fn xyyy(self) -> Self
fn xyyz(self) -> Self
fn xyyw(self) -> Self
fn xyzx(self) -> Self
fn xyzy(self) -> Self
fn xyzz(self) -> Self
fn xywx(self) -> Self
fn xywy(self) -> Self
fn xywz(self) -> Self
fn xyww(self) -> Self
fn xzxx(self) -> Self
fn xzxy(self) -> Self
fn xzxz(self) -> Self
fn xzxw(self) -> Self
fn xzyx(self) -> Self
fn xzyy(self) -> Self
fn xzyz(self) -> Self
fn xzyw(self) -> Self
fn xzzx(self) -> Self
fn xzzy(self) -> Self
fn xzzz(self) -> Self
fn xzzw(self) -> Self
fn xzwx(self) -> Self
fn xzwy(self) -> Self
fn xzwz(self) -> Self
fn xzww(self) -> Self
fn xwxx(self) -> Self
fn xwxy(self) -> Self
fn xwxz(self) -> Self
fn xwxw(self) -> Self
fn xwyx(self) -> Self
fn xwyy(self) -> Self
fn xwyz(self) -> Self
fn xwyw(self) -> Self
fn xwzx(self) -> Self
fn xwzy(self) -> Self
fn xwzz(self) -> Self
fn xwzw(self) -> Self
fn xwwx(self) -> Self
fn xwwy(self) -> Self
fn xwwz(self) -> Self
fn xwww(self) -> Self
fn yxxx(self) -> Self
fn yxxy(self) -> Self
fn yxxz(self) -> Self
fn yxxw(self) -> Self
fn yxyx(self) -> Self
fn yxyy(self) -> Self
fn yxyz(self) -> Self
fn yxyw(self) -> Self
fn yxzx(self) -> Self
fn yxzy(self) -> Self
fn yxzz(self) -> Self
fn yxzw(self) -> Self
fn yxwx(self) -> Self
fn yxwy(self) -> Self
fn yxwz(self) -> Self
fn yxww(self) -> Self
fn yyxx(self) -> Self
fn yyxy(self) -> Self
fn yyxz(self) -> Self
fn yyxw(self) -> Self
fn yyyx(self) -> Self
fn yyyy(self) -> Self
fn yyyz(self) -> Self
fn yyyw(self) -> Self
fn yyzx(self) -> Self
fn yyzy(self) -> Self
fn yyzz(self) -> Self
fn yyzw(self) -> Self
fn yywx(self) -> Self
fn yywy(self) -> Self
fn yywz(self) -> Self
fn yyww(self) -> Self
fn yzxx(self) -> Self
fn yzxy(self) -> Self
fn yzxz(self) -> Self
fn yzxw(self) -> Self
fn yzyx(self) -> Self
fn yzyy(self) -> Self
fn yzyz(self) -> Self
fn yzyw(self) -> Self
fn yzzx(self) -> Self
fn yzzy(self) -> Self
fn yzzz(self) -> Self
fn yzzw(self) -> Self
fn yzwx(self) -> Self
fn yzwy(self) -> Self
fn yzwz(self) -> Self
fn yzww(self) -> Self
fn ywxx(self) -> Self
fn ywxy(self) -> Self
fn ywxz(self) -> Self
fn ywxw(self) -> Self
fn ywyx(self) -> Self
fn ywyy(self) -> Self
fn ywyz(self) -> Self
fn ywyw(self) -> Self
fn ywzx(self) -> Self
fn ywzy(self) -> Self
fn ywzz(self) -> Self
fn ywzw(self) -> Self
fn ywwx(self) -> Self
fn ywwy(self) -> Self
fn ywwz(self) -> Self
fn ywww(self) -> Self
fn zxxx(self) -> Self
fn zxxy(self) -> Self
fn zxxz(self) -> Self
fn zxxw(self) -> Self
fn zxyx(self) -> Self
fn zxyy(self) -> Self
fn zxyz(self) -> Self
fn zxyw(self) -> Self
fn zxzx(self) -> Self
fn zxzy(self) -> Self
fn zxzz(self) -> Self
fn zxzw(self) -> Self
fn zxwx(self) -> Self
fn zxwy(self) -> Self
fn zxwz(self) -> Self
fn zxww(self) -> Self
fn zyxx(self) -> Self
fn zyxy(self) -> Self
fn zyxz(self) -> Self
fn zyxw(self) -> Self
fn zyyx(self) -> Self
fn zyyy(self) -> Self
fn zyyz(self) -> Self
fn zyyw(self) -> Self
fn zyzx(self) -> Self
fn zyzy(self) -> Self
fn zyzz(self) -> Self
fn zyzw(self) -> Self
fn zywx(self) -> Self
fn zywy(self) -> Self
fn zywz(self) -> Self
fn zyww(self) -> Self
fn zzxx(self) -> Self
fn zzxy(self) -> Self
fn zzxz(self) -> Self
fn zzxw(self) -> Self
fn zzyx(self) -> Self
fn zzyy(self) -> Self
fn zzyz(self) -> Self
fn zzyw(self) -> Self
fn zzzx(self) -> Self
fn zzzy(self) -> Self
fn zzzz(self) -> Self
fn zzzw(self) -> Self
fn zzwx(self) -> Self
fn zzwy(self) -> Self
fn zzwz(self) -> Self
fn zzww(self) -> Self
fn zwxx(self) -> Self
fn zwxy(self) -> Self
fn zwxz(self) -> Self
fn zwxw(self) -> Self
fn zwyx(self) -> Self
fn zwyy(self) -> Self
fn zwyz(self) -> Self
fn zwyw(self) -> Self
fn zwzx(self) -> Self
fn zwzy(self) -> Self
fn zwzz(self) -> Self
fn zwzw(self) -> Self
fn zwwx(self) -> Self
fn zwwy(self) -> Self
fn zwwz(self) -> Self
fn zwww(self) -> Self
fn wxxx(self) -> Self
fn wxxy(self) -> Self
fn wxxz(self) -> Self
fn wxxw(self) -> Self
fn wxyx(self) -> Self
fn wxyy(self) -> Self
fn wxyz(self) -> Self
fn wxyw(self) -> Self
fn wxzx(self) -> Self
fn wxzy(self) -> Self
fn wxzz(self) -> Self
fn wxzw(self) -> Self
fn wxwx(self) -> Self
fn wxwy(self) -> Self
fn wxwz(self) -> Self
fn wxww(self) -> Self
fn wyxx(self) -> Self
fn wyxy(self) -> Self
fn wyxz(self) -> Self
fn wyxw(self) -> Self
fn wyyx(self) -> Self
fn wyyy(self) -> Self
fn wyyz(self) -> Self
fn wyyw(self) -> Self
fn wyzx(self) -> Self
fn wyzy(self) -> Self
fn wyzz(self) -> Self
fn wyzw(self) -> Self
fn wywx(self) -> Self
fn wywy(self) -> Self
fn wywz(self) -> Self
fn wyww(self) -> Self
fn wzxx(self) -> Self
fn wzxy(self) -> Self
fn wzxz(self) -> Self
fn wzxw(self) -> Self
fn wzyx(self) -> Self
fn wzyy(self) -> Self
fn wzyz(self) -> Self
fn wzyw(self) -> Self
fn wzzx(self) -> Self
fn wzzy(self) -> Self
fn wzzz(self) -> Self
fn wzzw(self) -> Self
fn wzwx(self) -> Self
fn wzwy(self) -> Self
fn wzwz(self) -> Self
fn wzww(self) -> Self
fn wwxx(self) -> Self
fn wwxy(self) -> Self
fn wwxz(self) -> Self
fn wwxw(self) -> Self
fn wwyx(self) -> Self
fn wwyy(self) -> Self
fn wwyz(self) -> Self
fn wwyw(self) -> Self
fn wwzx(self) -> Self
fn wwzy(self) -> Self
fn wwzz(self) -> Self
fn wwzw(self) -> Self
fn wwwx(self) -> Self
fn wwwy(self) -> Self
fn wwwz(self) -> Self
fn wwww(self) -> Self
fn xyzw(self) -> Self
impl Copy for U16Vec4
impl Eq for U16Vec4
impl Pod for U16Vec4
impl StructuralPartialEq for U16Vec4
Auto Trait Implementations§
impl Freeze for U16Vec4
impl RefUnwindSafe for U16Vec4
impl Send for U16Vec4
impl Sync for U16Vec4
impl Unpin for U16Vec4
impl UnwindSafe for U16Vec4
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
.