Struct U16Vec2
#[repr(C)]pub struct U16Vec2 {
pub x: u16,
pub y: u16,
}Expand description
A 2-dimensional vector.
Fields§
§x: u16§y: u16Implementations§
§impl U16Vec2
impl U16Vec2
pub fn map<F>(self, f: F) -> U16Vec2
pub fn map<F>(self, f: F) -> U16Vec2
Returns a vector containing each element of self modified by a mapping function f.
pub fn select(mask: BVec2, if_true: U16Vec2, if_false: U16Vec2) -> U16Vec2
pub fn select(mask: BVec2, if_true: U16Vec2, if_false: U16Vec2) -> U16Vec2
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.
pub const fn from_array(a: [u16; 2]) -> U16Vec2
pub const fn from_array(a: [u16; 2]) -> U16Vec2
Creates a new vector from an array.
pub const fn from_slice(slice: &[u16]) -> U16Vec2
pub const fn from_slice(slice: &[u16]) -> U16Vec2
Creates a vector from the first 2 values in slice.
§Panics
Panics if slice is less than 2 elements long.
pub 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 2 elements in slice.
§Panics
Panics if slice is less than 2 elements long.
pub fn dot_into_vec(self, rhs: U16Vec2) -> U16Vec2
pub fn dot_into_vec(self, rhs: U16Vec2) -> U16Vec2
Returns a vector where every component is the dot product of self and rhs.
pub fn min(self, rhs: U16Vec2) -> U16Vec2
pub fn min(self, rhs: U16Vec2) -> U16Vec2
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), ..].
pub fn max(self, rhs: U16Vec2) -> U16Vec2
pub fn max(self, rhs: U16Vec2) -> U16Vec2
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), ..].
pub fn clamp(self, min: U16Vec2, max: U16Vec2) -> U16Vec2
pub fn clamp(self, min: U16Vec2, max: U16Vec2) -> U16Vec2
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.
pub 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, ..).
pub 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, ..).
pub fn min_position(self) -> usize
pub fn min_position(self) -> usize
Returns the index of the first minimum element of self.
pub fn max_position(self) -> usize
pub fn max_position(self) -> usize
Returns the index of the first maximum element of self.
pub 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 + ...
pub 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 * ...
pub fn cmpeq(self, rhs: U16Vec2) -> BVec2
pub fn cmpeq(self, rhs: U16Vec2) -> 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.
pub fn cmpne(self, rhs: U16Vec2) -> BVec2
pub fn cmpne(self, rhs: U16Vec2) -> 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.
pub fn cmpge(self, rhs: U16Vec2) -> BVec2
pub fn cmpge(self, rhs: U16Vec2) -> 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.
pub fn cmpgt(self, rhs: U16Vec2) -> BVec2
pub fn cmpgt(self, rhs: U16Vec2) -> 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.
pub fn cmple(self, rhs: U16Vec2) -> BVec2
pub fn cmple(self, rhs: U16Vec2) -> 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.
pub fn cmplt(self, rhs: U16Vec2) -> BVec2
pub fn cmplt(self, rhs: U16Vec2) -> 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.
pub fn length_squared(self) -> u16
pub fn length_squared(self) -> u16
Computes the squared length of self.
pub fn manhattan_distance(self, rhs: U16Vec2) -> u16
pub fn manhattan_distance(self, rhs: U16Vec2) -> 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.
pub fn checked_manhattan_distance(self, rhs: U16Vec2) -> Option<u16>
pub fn checked_manhattan_distance(self, rhs: U16Vec2) -> Option<u16>
Computes the manhattan distance between two points.
This will returns None if the result is greater than u16::MAX.
pub fn chebyshev_distance(self, rhs: U16Vec2) -> u16
pub fn chebyshev_distance(self, rhs: U16Vec2) -> u16
Computes the chebyshev distance between two points.
pub fn as_i16vec2(self) -> I16Vec2
pub fn as_i16vec2(self) -> I16Vec2
Casts all elements of self to i16.
pub fn as_i64vec2(self) -> I64Vec2
pub fn as_i64vec2(self) -> I64Vec2
Casts all elements of self to i64.
pub fn as_u64vec2(self) -> U64Vec2
pub fn as_u64vec2(self) -> U64Vec2
Casts all elements of self to u64.
pub const fn checked_add(self, rhs: U16Vec2) -> Option<U16Vec2>
pub const fn checked_add(self, rhs: U16Vec2) -> Option<U16Vec2>
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.
pub const fn checked_sub(self, rhs: U16Vec2) -> Option<U16Vec2>
pub const fn checked_sub(self, rhs: U16Vec2) -> Option<U16Vec2>
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.
pub const fn checked_mul(self, rhs: U16Vec2) -> Option<U16Vec2>
pub const fn checked_mul(self, rhs: U16Vec2) -> Option<U16Vec2>
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.
pub const fn checked_div(self, rhs: U16Vec2) -> Option<U16Vec2>
pub const fn checked_div(self, rhs: U16Vec2) -> Option<U16Vec2>
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.
pub const fn wrapping_add(self, rhs: U16Vec2) -> U16Vec2
pub const fn wrapping_add(self, rhs: U16Vec2) -> U16Vec2
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), ..].
pub const fn wrapping_sub(self, rhs: U16Vec2) -> U16Vec2
pub const fn wrapping_sub(self, rhs: U16Vec2) -> U16Vec2
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), ..].
pub const fn wrapping_mul(self, rhs: U16Vec2) -> U16Vec2
pub const fn wrapping_mul(self, rhs: U16Vec2) -> U16Vec2
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), ..].
pub const fn wrapping_div(self, rhs: U16Vec2) -> U16Vec2
pub const fn wrapping_div(self, rhs: U16Vec2) -> U16Vec2
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), ..].
pub const fn saturating_add(self, rhs: U16Vec2) -> U16Vec2
pub const fn saturating_add(self, rhs: U16Vec2) -> U16Vec2
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), ..].
pub const fn saturating_sub(self, rhs: U16Vec2) -> U16Vec2
pub const fn saturating_sub(self, rhs: U16Vec2) -> U16Vec2
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), ..].
pub const fn saturating_mul(self, rhs: U16Vec2) -> U16Vec2
pub const fn saturating_mul(self, rhs: U16Vec2) -> U16Vec2
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), ..].
pub const fn saturating_div(self, rhs: U16Vec2) -> U16Vec2
pub const fn saturating_div(self, rhs: U16Vec2) -> U16Vec2
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), ..].
pub const fn checked_add_signed(self, rhs: I16Vec2) -> Option<U16Vec2>
pub const fn checked_add_signed(self, rhs: I16Vec2) -> Option<U16Vec2>
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.
pub const fn wrapping_add_signed(self, rhs: I16Vec2) -> U16Vec2
pub const fn wrapping_add_signed(self, rhs: I16Vec2) -> U16Vec2
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), ..].
pub const fn saturating_add_signed(self, rhs: I16Vec2) -> U16Vec2
pub const fn saturating_add_signed(self, rhs: I16Vec2) -> U16Vec2
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§
§impl AddAssign for U16Vec2
impl AddAssign for U16Vec2
§fn add_assign(&mut self, rhs: U16Vec2)
fn add_assign(&mut self, rhs: U16Vec2)
+= operation. Read more§impl AddAssign<&U16Vec2> for U16Vec2
impl AddAssign<&U16Vec2> for U16Vec2
§fn add_assign(&mut self, rhs: &U16Vec2)
fn add_assign(&mut self, rhs: &U16Vec2)
+= operation. Read more§impl AddAssign<&u16> for U16Vec2
impl AddAssign<&u16> for U16Vec2
§fn add_assign(&mut self, rhs: &u16)
fn add_assign(&mut self, rhs: &u16)
+= operation. Read more§impl AddAssign<u16> for U16Vec2
impl AddAssign<u16> for U16Vec2
§fn add_assign(&mut self, rhs: u16)
fn add_assign(&mut self, rhs: u16)
+= operation. Read more§impl BitAndAssign for U16Vec2
impl BitAndAssign for U16Vec2
§fn bitand_assign(&mut self, rhs: U16Vec2)
fn bitand_assign(&mut self, rhs: U16Vec2)
&= operation. Read more§impl BitAndAssign<&U16Vec2> for U16Vec2
impl BitAndAssign<&U16Vec2> for U16Vec2
§fn bitand_assign(&mut self, rhs: &U16Vec2)
fn bitand_assign(&mut self, rhs: &U16Vec2)
&= operation. Read more§impl BitAndAssign<&u16> for U16Vec2
impl BitAndAssign<&u16> for U16Vec2
§fn bitand_assign(&mut self, rhs: &u16)
fn bitand_assign(&mut self, rhs: &u16)
&= operation. Read more§impl BitAndAssign<u16> for U16Vec2
impl BitAndAssign<u16> for U16Vec2
§fn bitand_assign(&mut self, rhs: u16)
fn bitand_assign(&mut self, rhs: u16)
&= operation. Read more§impl BitOrAssign for U16Vec2
impl BitOrAssign for U16Vec2
§fn bitor_assign(&mut self, rhs: U16Vec2)
fn bitor_assign(&mut self, rhs: U16Vec2)
|= operation. Read more§impl BitOrAssign<&U16Vec2> for U16Vec2
impl BitOrAssign<&U16Vec2> for U16Vec2
§fn bitor_assign(&mut self, rhs: &U16Vec2)
fn bitor_assign(&mut self, rhs: &U16Vec2)
|= operation. Read more§impl BitOrAssign<&u16> for U16Vec2
impl BitOrAssign<&u16> for U16Vec2
§fn bitor_assign(&mut self, rhs: &u16)
fn bitor_assign(&mut self, rhs: &u16)
|= operation. Read more§impl BitOrAssign<u16> for U16Vec2
impl BitOrAssign<u16> for U16Vec2
§fn bitor_assign(&mut self, rhs: u16)
fn bitor_assign(&mut self, rhs: u16)
|= operation. Read more§impl BitXorAssign for U16Vec2
impl BitXorAssign for U16Vec2
§fn bitxor_assign(&mut self, rhs: U16Vec2)
fn bitxor_assign(&mut self, rhs: U16Vec2)
^= operation. Read more§impl BitXorAssign<&U16Vec2> for U16Vec2
impl BitXorAssign<&U16Vec2> for U16Vec2
§fn bitxor_assign(&mut self, rhs: &U16Vec2)
fn bitxor_assign(&mut self, rhs: &U16Vec2)
^= operation. Read more§impl BitXorAssign<&u16> for U16Vec2
impl BitXorAssign<&u16> for U16Vec2
§fn bitxor_assign(&mut self, rhs: &u16)
fn bitxor_assign(&mut self, rhs: &u16)
^= operation. Read more§impl BitXorAssign<u16> for U16Vec2
impl BitXorAssign<u16> for U16Vec2
§fn bitxor_assign(&mut self, rhs: u16)
fn bitxor_assign(&mut self, rhs: u16)
^= operation. Read moreimpl Copy for U16Vec2
§impl<'de> Deserialize<'de> for U16Vec2
Deserialize expects a sequence of 2 values.
impl<'de> Deserialize<'de> for U16Vec2
Deserialize expects a sequence of 2 values.
§fn deserialize<D>(
deserializer: D,
) -> Result<U16Vec2, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<U16Vec2, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
§impl DivAssign for U16Vec2
impl DivAssign for U16Vec2
§fn div_assign(&mut self, rhs: U16Vec2)
fn div_assign(&mut self, rhs: U16Vec2)
/= operation. Read more§impl DivAssign<&U16Vec2> for U16Vec2
impl DivAssign<&U16Vec2> for U16Vec2
§fn div_assign(&mut self, rhs: &U16Vec2)
fn div_assign(&mut self, rhs: &U16Vec2)
/= operation. Read more§impl DivAssign<&u16> for U16Vec2
impl DivAssign<&u16> for U16Vec2
§fn div_assign(&mut self, rhs: &u16)
fn div_assign(&mut self, rhs: &u16)
/= operation. Read more§impl DivAssign<u16> for U16Vec2
impl DivAssign<u16> for U16Vec2
§fn div_assign(&mut self, rhs: u16)
fn div_assign(&mut self, rhs: u16)
/= operation. Read moreimpl Eq for U16Vec2
§impl MulAssign for U16Vec2
impl MulAssign for U16Vec2
§fn mul_assign(&mut self, rhs: U16Vec2)
fn mul_assign(&mut self, rhs: U16Vec2)
*= operation. Read more§impl MulAssign<&U16Vec2> for U16Vec2
impl MulAssign<&U16Vec2> for U16Vec2
§fn mul_assign(&mut self, rhs: &U16Vec2)
fn mul_assign(&mut self, rhs: &U16Vec2)
*= operation. Read more§impl MulAssign<&u16> for U16Vec2
impl MulAssign<&u16> for U16Vec2
§fn mul_assign(&mut self, rhs: &u16)
fn mul_assign(&mut self, rhs: &u16)
*= operation. Read more§impl MulAssign<u16> for U16Vec2
impl MulAssign<u16> for U16Vec2
§fn mul_assign(&mut self, rhs: u16)
fn mul_assign(&mut self, rhs: u16)
*= operation. Read moreimpl Pod for U16Vec2
§impl RemAssign for U16Vec2
impl RemAssign for U16Vec2
§fn rem_assign(&mut self, rhs: U16Vec2)
fn rem_assign(&mut self, rhs: U16Vec2)
%= operation. Read more§impl RemAssign<&U16Vec2> for U16Vec2
impl RemAssign<&U16Vec2> for U16Vec2
§fn rem_assign(&mut self, rhs: &U16Vec2)
fn rem_assign(&mut self, rhs: &U16Vec2)
%= operation. Read more§impl RemAssign<&u16> for U16Vec2
impl RemAssign<&u16> for U16Vec2
§fn rem_assign(&mut self, rhs: &u16)
fn rem_assign(&mut self, rhs: &u16)
%= operation. Read more§impl RemAssign<u16> for U16Vec2
impl RemAssign<u16> for U16Vec2
§fn rem_assign(&mut self, rhs: u16)
fn rem_assign(&mut self, rhs: u16)
%= operation. Read more§impl SampleUniform for U16Vec2
impl SampleUniform for U16Vec2
§type Sampler = UniformVec2<UniformInt<u16>>
type Sampler = UniformVec2<UniformInt<u16>>
UniformSampler implementation supporting type X.§impl Serialize for U16Vec2
Serialize as a sequence of 2 values.
impl Serialize for U16Vec2
Serialize as a sequence of 2 values.
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
§impl ShlAssign<&i8> for U16Vec2
impl ShlAssign<&i8> for U16Vec2
§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<= operation. Read more§impl ShlAssign<&i16> for U16Vec2
impl ShlAssign<&i16> for U16Vec2
§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<= operation. Read more§impl ShlAssign<&i32> for U16Vec2
impl ShlAssign<&i32> for U16Vec2
§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<= operation. Read more§impl ShlAssign<&i64> for U16Vec2
impl ShlAssign<&i64> for U16Vec2
§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<= operation. Read more§impl ShlAssign<&u8> for U16Vec2
impl ShlAssign<&u8> for U16Vec2
§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<= operation. Read more§impl ShlAssign<&u16> for U16Vec2
impl ShlAssign<&u16> for U16Vec2
§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<= operation. Read more§impl ShlAssign<&u32> for U16Vec2
impl ShlAssign<&u32> for U16Vec2
§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<= operation. Read more§impl ShlAssign<&u64> for U16Vec2
impl ShlAssign<&u64> for U16Vec2
§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<= operation. Read more§impl ShlAssign<i8> for U16Vec2
impl ShlAssign<i8> for U16Vec2
§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<= operation. Read more§impl ShlAssign<i16> for U16Vec2
impl ShlAssign<i16> for U16Vec2
§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<= operation. Read more§impl ShlAssign<i32> for U16Vec2
impl ShlAssign<i32> for U16Vec2
§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<= operation. Read more§impl ShlAssign<i64> for U16Vec2
impl ShlAssign<i64> for U16Vec2
§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<= operation. Read more§impl ShlAssign<u8> for U16Vec2
impl ShlAssign<u8> for U16Vec2
§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<= operation. Read more§impl ShlAssign<u16> for U16Vec2
impl ShlAssign<u16> for U16Vec2
§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<= operation. Read more§impl ShlAssign<u32> for U16Vec2
impl ShlAssign<u32> for U16Vec2
§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<= operation. Read more§impl ShlAssign<u64> for U16Vec2
impl ShlAssign<u64> for U16Vec2
§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<= operation. Read more§impl ShrAssign<&i8> for U16Vec2
impl ShrAssign<&i8> for U16Vec2
§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>= operation. Read more§impl ShrAssign<&i16> for U16Vec2
impl ShrAssign<&i16> for U16Vec2
§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>= operation. Read more§impl ShrAssign<&i32> for U16Vec2
impl ShrAssign<&i32> for U16Vec2
§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>= operation. Read more§impl ShrAssign<&i64> for U16Vec2
impl ShrAssign<&i64> for U16Vec2
§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>= operation. Read more§impl ShrAssign<&u8> for U16Vec2
impl ShrAssign<&u8> for U16Vec2
§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>= operation. Read more§impl ShrAssign<&u16> for U16Vec2
impl ShrAssign<&u16> for U16Vec2
§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>= operation. Read more§impl ShrAssign<&u32> for U16Vec2
impl ShrAssign<&u32> for U16Vec2
§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>= operation. Read more§impl ShrAssign<&u64> for U16Vec2
impl ShrAssign<&u64> for U16Vec2
§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>= operation. Read more§impl ShrAssign<i8> for U16Vec2
impl ShrAssign<i8> for U16Vec2
§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>= operation. Read more§impl ShrAssign<i16> for U16Vec2
impl ShrAssign<i16> for U16Vec2
§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>= operation. Read more§impl ShrAssign<i32> for U16Vec2
impl ShrAssign<i32> for U16Vec2
§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>= operation. Read more§impl ShrAssign<i64> for U16Vec2
impl ShrAssign<i64> for U16Vec2
§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>= operation. Read more§impl ShrAssign<u8> for U16Vec2
impl ShrAssign<u8> for U16Vec2
§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>= operation. Read more§impl ShrAssign<u16> for U16Vec2
impl ShrAssign<u16> for U16Vec2
§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>= operation. Read more§impl ShrAssign<u32> for U16Vec2
impl ShrAssign<u32> for U16Vec2
§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>= operation. Read more§impl ShrAssign<u64> for U16Vec2
impl ShrAssign<u64> for U16Vec2
§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>= operation. Read moreimpl StructuralPartialEq for U16Vec2
§impl SubAssign for U16Vec2
impl SubAssign for U16Vec2
§fn sub_assign(&mut self, rhs: U16Vec2)
fn sub_assign(&mut self, rhs: U16Vec2)
-= operation. Read more§impl SubAssign<&U16Vec2> for U16Vec2
impl SubAssign<&U16Vec2> for U16Vec2
§fn sub_assign(&mut self, rhs: &U16Vec2)
fn sub_assign(&mut self, rhs: &U16Vec2)
-= operation. Read more§impl SubAssign<&u16> for U16Vec2
impl SubAssign<&u16> for U16Vec2
§fn sub_assign(&mut self, rhs: &u16)
fn sub_assign(&mut self, rhs: &u16)
-= operation. Read more§impl SubAssign<u16> for U16Vec2
impl SubAssign<u16> for U16Vec2
§fn sub_assign(&mut self, rhs: u16)
fn sub_assign(&mut self, rhs: u16)
-= operation. Read more§impl Vec2Swizzles for U16Vec2
impl Vec2Swizzles for U16Vec2
type Vec3 = U16Vec3
type Vec4 = U16Vec4
fn xx(self) -> U16Vec2
fn yx(self) -> U16Vec2
fn yy(self) -> U16Vec2
fn xxx(self) -> U16Vec3
fn xxy(self) -> U16Vec3
fn xyx(self) -> U16Vec3
fn xyy(self) -> U16Vec3
fn yxx(self) -> U16Vec3
fn yxy(self) -> U16Vec3
fn yyx(self) -> U16Vec3
fn yyy(self) -> U16Vec3
fn xxxx(self) -> U16Vec4
fn xxxy(self) -> U16Vec4
fn xxyx(self) -> U16Vec4
fn xxyy(self) -> U16Vec4
fn xyxx(self) -> U16Vec4
fn xyxy(self) -> U16Vec4
fn xyyx(self) -> U16Vec4
fn xyyy(self) -> U16Vec4
fn yxxx(self) -> U16Vec4
fn yxxy(self) -> U16Vec4
fn yxyx(self) -> U16Vec4
fn yxyy(self) -> U16Vec4
fn yyxx(self) -> U16Vec4
fn yyxy(self) -> U16Vec4
fn yyyx(self) -> U16Vec4
fn yyyy(self) -> U16Vec4
fn xy(self) -> Self
Auto Trait Implementations§
impl Freeze for U16Vec2
impl RefUnwindSafe for U16Vec2
impl Send for U16Vec2
impl Sync for U16Vec2
impl Unpin for U16Vec2
impl UnsafeUnpin for U16Vec2
impl UnwindSafe for U16Vec2
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, Right> ClosedAdd<Right> for T
impl<T, Right> ClosedAddAssign<Right> for T
impl<T, Right> ClosedDiv<Right> for T
impl<T, Right> ClosedDivAssign<Right> for T
impl<T, Right> ClosedMul<Right> for T
impl<T, Right> ClosedMulAssign<Right> for T
impl<T, Right> ClosedSub<Right> for T
impl<T, Right> ClosedSubAssign<Right> for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
impl<T> NoUninit for Twhere
T: Pod,
impl<T, Rhs> NumAssignOps<Rhs> for T
impl<T, Rhs, Output> NumOps<Rhs, Output> for T
impl<T, Base> RefNum<Base> for T
Source§impl<Borrowed> SampleBorrow<Borrowed> for Borrowedwhere
Borrowed: SampleUniform,
impl<Borrowed> SampleBorrow<Borrowed> for Borrowedwhere
Borrowed: SampleUniform,
Source§fn borrow(&self) -> &Borrowed
fn borrow(&self) -> &Borrowed
Borrow::borrowimpl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.