Struct U8Vec2
#[repr(C)]pub struct U8Vec2 {
pub x: u8,
pub y: u8,
}Expand description
A 2-dimensional vector.
Fields§
§x: u8§y: u8Implementations§
§impl U8Vec2
impl U8Vec2
pub fn map<F>(self, f: F) -> U8Vec2
pub fn map<F>(self, f: F) -> U8Vec2
Returns a vector containing each element of self modified by a mapping function f.
pub fn select(mask: BVec2, if_true: U8Vec2, if_false: U8Vec2) -> U8Vec2
pub fn select(mask: BVec2, if_true: U8Vec2, if_false: U8Vec2) -> U8Vec2
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: [u8; 2]) -> U8Vec2
pub const fn from_array(a: [u8; 2]) -> U8Vec2
Creates a new vector from an array.
pub const fn from_slice(slice: &[u8]) -> U8Vec2
pub const fn from_slice(slice: &[u8]) -> U8Vec2
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 [u8])
pub fn write_to_slice(self, slice: &mut [u8])
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: U8Vec2) -> U8Vec2
pub fn dot_into_vec(self, rhs: U8Vec2) -> U8Vec2
Returns a vector where every component is the dot product of self and rhs.
pub fn min(self, rhs: U8Vec2) -> U8Vec2
pub fn min(self, rhs: U8Vec2) -> U8Vec2
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: U8Vec2) -> U8Vec2
pub fn max(self, rhs: U8Vec2) -> U8Vec2
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 min_element(self) -> u8
pub fn min_element(self) -> u8
Returns the horizontal minimum of self.
In other words this computes min(x, y, ..).
pub fn max_element(self) -> u8
pub fn max_element(self) -> u8
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) -> u8
pub fn element_sum(self) -> u8
Returns the sum of all elements of self.
In other words, this computes self.x + self.y + ...
pub fn element_product(self) -> u8
pub fn element_product(self) -> u8
Returns the product of all elements of self.
In other words, this computes self.x * self.y * ...
pub fn cmpeq(self, rhs: U8Vec2) -> BVec2
pub fn cmpeq(self, rhs: U8Vec2) -> 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: U8Vec2) -> BVec2
pub fn cmpne(self, rhs: U8Vec2) -> 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: U8Vec2) -> BVec2
pub fn cmpge(self, rhs: U8Vec2) -> 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: U8Vec2) -> BVec2
pub fn cmpgt(self, rhs: U8Vec2) -> 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: U8Vec2) -> BVec2
pub fn cmple(self, rhs: U8Vec2) -> 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: U8Vec2) -> BVec2
pub fn cmplt(self, rhs: U8Vec2) -> 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) -> u8
pub fn length_squared(self) -> u8
Computes the squared length of self.
pub fn manhattan_distance(self, rhs: U8Vec2) -> u8
pub fn manhattan_distance(self, rhs: U8Vec2) -> u8
Computes the manhattan distance between two points.
§Overflow
This method may overflow if the result is greater than u8::MAX.
See also checked_manhattan_distance.
pub fn checked_manhattan_distance(self, rhs: U8Vec2) -> Option<u8>
pub fn checked_manhattan_distance(self, rhs: U8Vec2) -> Option<u8>
Computes the manhattan distance between two points.
This will returns None if the result is greater than u8::MAX.
pub fn chebyshev_distance(self, rhs: U8Vec2) -> u8
pub fn chebyshev_distance(self, rhs: U8Vec2) -> u8
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_u16vec2(self) -> U16Vec2
pub fn as_u16vec2(self) -> U16Vec2
Casts all elements of self to u16.
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: U8Vec2) -> Option<U8Vec2>
pub const fn checked_add(self, rhs: U8Vec2) -> Option<U8Vec2>
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: U8Vec2) -> Option<U8Vec2>
pub const fn checked_sub(self, rhs: U8Vec2) -> Option<U8Vec2>
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: U8Vec2) -> Option<U8Vec2>
pub const fn checked_mul(self, rhs: U8Vec2) -> Option<U8Vec2>
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: U8Vec2) -> Option<U8Vec2>
pub const fn checked_div(self, rhs: U8Vec2) -> Option<U8Vec2>
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: U8Vec2) -> U8Vec2
pub const fn wrapping_add(self, rhs: U8Vec2) -> U8Vec2
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: U8Vec2) -> U8Vec2
pub const fn wrapping_sub(self, rhs: U8Vec2) -> U8Vec2
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: U8Vec2) -> U8Vec2
pub const fn wrapping_mul(self, rhs: U8Vec2) -> U8Vec2
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: U8Vec2) -> U8Vec2
pub const fn wrapping_div(self, rhs: U8Vec2) -> U8Vec2
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: U8Vec2) -> U8Vec2
pub const fn saturating_add(self, rhs: U8Vec2) -> U8Vec2
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: U8Vec2) -> U8Vec2
pub const fn saturating_sub(self, rhs: U8Vec2) -> U8Vec2
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: U8Vec2) -> U8Vec2
pub const fn saturating_mul(self, rhs: U8Vec2) -> U8Vec2
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: U8Vec2) -> U8Vec2
pub const fn saturating_div(self, rhs: U8Vec2) -> U8Vec2
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: I8Vec2) -> Option<U8Vec2>
pub const fn checked_add_signed(self, rhs: I8Vec2) -> Option<U8Vec2>
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: I8Vec2) -> U8Vec2
pub const fn wrapping_add_signed(self, rhs: I8Vec2) -> U8Vec2
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: I8Vec2) -> U8Vec2
pub const fn saturating_add_signed(self, rhs: I8Vec2) -> U8Vec2
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 U8Vec2
impl AddAssign for U8Vec2
§fn add_assign(&mut self, rhs: U8Vec2)
fn add_assign(&mut self, rhs: U8Vec2)
+= operation. Read more§impl AddAssign<&U8Vec2> for U8Vec2
impl AddAssign<&U8Vec2> for U8Vec2
§fn add_assign(&mut self, rhs: &U8Vec2)
fn add_assign(&mut self, rhs: &U8Vec2)
+= operation. Read more§impl AddAssign<&u8> for U8Vec2
impl AddAssign<&u8> for U8Vec2
§fn add_assign(&mut self, rhs: &u8)
fn add_assign(&mut self, rhs: &u8)
+= operation. Read more§impl AddAssign<u8> for U8Vec2
impl AddAssign<u8> for U8Vec2
§fn add_assign(&mut self, rhs: u8)
fn add_assign(&mut self, rhs: u8)
+= operation. Read more§impl BitAndAssign for U8Vec2
impl BitAndAssign for U8Vec2
§fn bitand_assign(&mut self, rhs: U8Vec2)
fn bitand_assign(&mut self, rhs: U8Vec2)
&= operation. Read more§impl BitAndAssign<&U8Vec2> for U8Vec2
impl BitAndAssign<&U8Vec2> for U8Vec2
§fn bitand_assign(&mut self, rhs: &U8Vec2)
fn bitand_assign(&mut self, rhs: &U8Vec2)
&= operation. Read more§impl BitAndAssign<&u8> for U8Vec2
impl BitAndAssign<&u8> for U8Vec2
§fn bitand_assign(&mut self, rhs: &u8)
fn bitand_assign(&mut self, rhs: &u8)
&= operation. Read more§impl BitAndAssign<u8> for U8Vec2
impl BitAndAssign<u8> for U8Vec2
§fn bitand_assign(&mut self, rhs: u8)
fn bitand_assign(&mut self, rhs: u8)
&= operation. Read more§impl BitOrAssign for U8Vec2
impl BitOrAssign for U8Vec2
§fn bitor_assign(&mut self, rhs: U8Vec2)
fn bitor_assign(&mut self, rhs: U8Vec2)
|= operation. Read more§impl BitOrAssign<&U8Vec2> for U8Vec2
impl BitOrAssign<&U8Vec2> for U8Vec2
§fn bitor_assign(&mut self, rhs: &U8Vec2)
fn bitor_assign(&mut self, rhs: &U8Vec2)
|= operation. Read more§impl BitOrAssign<&u8> for U8Vec2
impl BitOrAssign<&u8> for U8Vec2
§fn bitor_assign(&mut self, rhs: &u8)
fn bitor_assign(&mut self, rhs: &u8)
|= operation. Read more§impl BitOrAssign<u8> for U8Vec2
impl BitOrAssign<u8> for U8Vec2
§fn bitor_assign(&mut self, rhs: u8)
fn bitor_assign(&mut self, rhs: u8)
|= operation. Read more§impl BitXorAssign for U8Vec2
impl BitXorAssign for U8Vec2
§fn bitxor_assign(&mut self, rhs: U8Vec2)
fn bitxor_assign(&mut self, rhs: U8Vec2)
^= operation. Read more§impl BitXorAssign<&U8Vec2> for U8Vec2
impl BitXorAssign<&U8Vec2> for U8Vec2
§fn bitxor_assign(&mut self, rhs: &U8Vec2)
fn bitxor_assign(&mut self, rhs: &U8Vec2)
^= operation. Read more§impl BitXorAssign<&u8> for U8Vec2
impl BitXorAssign<&u8> for U8Vec2
§fn bitxor_assign(&mut self, rhs: &u8)
fn bitxor_assign(&mut self, rhs: &u8)
^= operation. Read more§impl BitXorAssign<u8> for U8Vec2
impl BitXorAssign<u8> for U8Vec2
§fn bitxor_assign(&mut self, rhs: u8)
fn bitxor_assign(&mut self, rhs: u8)
^= operation. Read moreimpl Copy for U8Vec2
§impl<'de> Deserialize<'de> for U8Vec2
Deserialize expects a sequence of 2 values.
impl<'de> Deserialize<'de> for U8Vec2
Deserialize expects a sequence of 2 values.
§fn deserialize<D>(
deserializer: D,
) -> Result<U8Vec2, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<U8Vec2, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
§impl DivAssign for U8Vec2
impl DivAssign for U8Vec2
§fn div_assign(&mut self, rhs: U8Vec2)
fn div_assign(&mut self, rhs: U8Vec2)
/= operation. Read more§impl DivAssign<&U8Vec2> for U8Vec2
impl DivAssign<&U8Vec2> for U8Vec2
§fn div_assign(&mut self, rhs: &U8Vec2)
fn div_assign(&mut self, rhs: &U8Vec2)
/= operation. Read more§impl DivAssign<&u8> for U8Vec2
impl DivAssign<&u8> for U8Vec2
§fn div_assign(&mut self, rhs: &u8)
fn div_assign(&mut self, rhs: &u8)
/= operation. Read more§impl DivAssign<u8> for U8Vec2
impl DivAssign<u8> for U8Vec2
§fn div_assign(&mut self, rhs: u8)
fn div_assign(&mut self, rhs: u8)
/= operation. Read moreimpl Eq for U8Vec2
§impl MulAssign for U8Vec2
impl MulAssign for U8Vec2
§fn mul_assign(&mut self, rhs: U8Vec2)
fn mul_assign(&mut self, rhs: U8Vec2)
*= operation. Read more§impl MulAssign<&U8Vec2> for U8Vec2
impl MulAssign<&U8Vec2> for U8Vec2
§fn mul_assign(&mut self, rhs: &U8Vec2)
fn mul_assign(&mut self, rhs: &U8Vec2)
*= operation. Read more§impl MulAssign<&u8> for U8Vec2
impl MulAssign<&u8> for U8Vec2
§fn mul_assign(&mut self, rhs: &u8)
fn mul_assign(&mut self, rhs: &u8)
*= operation. Read more§impl MulAssign<u8> for U8Vec2
impl MulAssign<u8> for U8Vec2
§fn mul_assign(&mut self, rhs: u8)
fn mul_assign(&mut self, rhs: u8)
*= operation. Read moreimpl Pod for U8Vec2
§impl RemAssign for U8Vec2
impl RemAssign for U8Vec2
§fn rem_assign(&mut self, rhs: U8Vec2)
fn rem_assign(&mut self, rhs: U8Vec2)
%= operation. Read more§impl RemAssign<&U8Vec2> for U8Vec2
impl RemAssign<&U8Vec2> for U8Vec2
§fn rem_assign(&mut self, rhs: &U8Vec2)
fn rem_assign(&mut self, rhs: &U8Vec2)
%= operation. Read more§impl RemAssign<&u8> for U8Vec2
impl RemAssign<&u8> for U8Vec2
§fn rem_assign(&mut self, rhs: &u8)
fn rem_assign(&mut self, rhs: &u8)
%= operation. Read more§impl RemAssign<u8> for U8Vec2
impl RemAssign<u8> for U8Vec2
§fn rem_assign(&mut self, rhs: u8)
fn rem_assign(&mut self, rhs: u8)
%= operation. Read more§impl SampleUniform for U8Vec2
impl SampleUniform for U8Vec2
§type Sampler = UniformVec2<UniformInt<u8>>
type Sampler = UniformVec2<UniformInt<u8>>
UniformSampler implementation supporting type X.§impl Serialize for U8Vec2
Serialize as a sequence of 2 values.
impl Serialize for U8Vec2
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 U8Vec2
impl ShlAssign<&i8> for U8Vec2
§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<= operation. Read more§impl ShlAssign<&i16> for U8Vec2
impl ShlAssign<&i16> for U8Vec2
§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<= operation. Read more§impl ShlAssign<&i32> for U8Vec2
impl ShlAssign<&i32> for U8Vec2
§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<= operation. Read more§impl ShlAssign<&i64> for U8Vec2
impl ShlAssign<&i64> for U8Vec2
§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<= operation. Read more§impl ShlAssign<&u8> for U8Vec2
impl ShlAssign<&u8> for U8Vec2
§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<= operation. Read more§impl ShlAssign<&u16> for U8Vec2
impl ShlAssign<&u16> for U8Vec2
§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<= operation. Read more§impl ShlAssign<&u32> for U8Vec2
impl ShlAssign<&u32> for U8Vec2
§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<= operation. Read more§impl ShlAssign<&u64> for U8Vec2
impl ShlAssign<&u64> for U8Vec2
§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<= operation. Read more§impl ShlAssign<i8> for U8Vec2
impl ShlAssign<i8> for U8Vec2
§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<= operation. Read more§impl ShlAssign<i16> for U8Vec2
impl ShlAssign<i16> for U8Vec2
§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<= operation. Read more§impl ShlAssign<i32> for U8Vec2
impl ShlAssign<i32> for U8Vec2
§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<= operation. Read more§impl ShlAssign<i64> for U8Vec2
impl ShlAssign<i64> for U8Vec2
§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<= operation. Read more§impl ShlAssign<u8> for U8Vec2
impl ShlAssign<u8> for U8Vec2
§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<= operation. Read more§impl ShlAssign<u16> for U8Vec2
impl ShlAssign<u16> for U8Vec2
§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<= operation. Read more§impl ShlAssign<u32> for U8Vec2
impl ShlAssign<u32> for U8Vec2
§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<= operation. Read more§impl ShlAssign<u64> for U8Vec2
impl ShlAssign<u64> for U8Vec2
§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<= operation. Read more§impl ShrAssign<&i8> for U8Vec2
impl ShrAssign<&i8> for U8Vec2
§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>= operation. Read more§impl ShrAssign<&i16> for U8Vec2
impl ShrAssign<&i16> for U8Vec2
§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>= operation. Read more§impl ShrAssign<&i32> for U8Vec2
impl ShrAssign<&i32> for U8Vec2
§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>= operation. Read more§impl ShrAssign<&i64> for U8Vec2
impl ShrAssign<&i64> for U8Vec2
§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>= operation. Read more§impl ShrAssign<&u8> for U8Vec2
impl ShrAssign<&u8> for U8Vec2
§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>= operation. Read more§impl ShrAssign<&u16> for U8Vec2
impl ShrAssign<&u16> for U8Vec2
§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>= operation. Read more§impl ShrAssign<&u32> for U8Vec2
impl ShrAssign<&u32> for U8Vec2
§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>= operation. Read more§impl ShrAssign<&u64> for U8Vec2
impl ShrAssign<&u64> for U8Vec2
§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>= operation. Read more§impl ShrAssign<i8> for U8Vec2
impl ShrAssign<i8> for U8Vec2
§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>= operation. Read more§impl ShrAssign<i16> for U8Vec2
impl ShrAssign<i16> for U8Vec2
§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>= operation. Read more§impl ShrAssign<i32> for U8Vec2
impl ShrAssign<i32> for U8Vec2
§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>= operation. Read more§impl ShrAssign<i64> for U8Vec2
impl ShrAssign<i64> for U8Vec2
§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>= operation. Read more§impl ShrAssign<u8> for U8Vec2
impl ShrAssign<u8> for U8Vec2
§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>= operation. Read more§impl ShrAssign<u16> for U8Vec2
impl ShrAssign<u16> for U8Vec2
§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>= operation. Read more§impl ShrAssign<u32> for U8Vec2
impl ShrAssign<u32> for U8Vec2
§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>= operation. Read more§impl ShrAssign<u64> for U8Vec2
impl ShrAssign<u64> for U8Vec2
§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>= operation. Read moreimpl StructuralPartialEq for U8Vec2
§impl SubAssign for U8Vec2
impl SubAssign for U8Vec2
§fn sub_assign(&mut self, rhs: U8Vec2)
fn sub_assign(&mut self, rhs: U8Vec2)
-= operation. Read more§impl SubAssign<&U8Vec2> for U8Vec2
impl SubAssign<&U8Vec2> for U8Vec2
§fn sub_assign(&mut self, rhs: &U8Vec2)
fn sub_assign(&mut self, rhs: &U8Vec2)
-= operation. Read more§impl SubAssign<&u8> for U8Vec2
impl SubAssign<&u8> for U8Vec2
§fn sub_assign(&mut self, rhs: &u8)
fn sub_assign(&mut self, rhs: &u8)
-= operation. Read more§impl SubAssign<u8> for U8Vec2
impl SubAssign<u8> for U8Vec2
§fn sub_assign(&mut self, rhs: u8)
fn sub_assign(&mut self, rhs: u8)
-= operation. Read more§impl Vec2Swizzles for U8Vec2
impl Vec2Swizzles for U8Vec2
type Vec3 = U8Vec3
type Vec4 = U8Vec4
fn xx(self) -> U8Vec2
fn yx(self) -> U8Vec2
fn yy(self) -> U8Vec2
fn xxx(self) -> U8Vec3
fn xxy(self) -> U8Vec3
fn xyx(self) -> U8Vec3
fn xyy(self) -> U8Vec3
fn yxx(self) -> U8Vec3
fn yxy(self) -> U8Vec3
fn yyx(self) -> U8Vec3
fn yyy(self) -> U8Vec3
fn xxxx(self) -> U8Vec4
fn xxxy(self) -> U8Vec4
fn xxyx(self) -> U8Vec4
fn xxyy(self) -> U8Vec4
fn xyxx(self) -> U8Vec4
fn xyxy(self) -> U8Vec4
fn xyyx(self) -> U8Vec4
fn xyyy(self) -> U8Vec4
fn yxxx(self) -> U8Vec4
fn yxxy(self) -> U8Vec4
fn yxyx(self) -> U8Vec4
fn yxyy(self) -> U8Vec4
fn yyxx(self) -> U8Vec4
fn yyxy(self) -> U8Vec4
fn yyyx(self) -> U8Vec4
fn yyyy(self) -> U8Vec4
fn xy(self) -> Self
Auto Trait Implementations§
impl Freeze for U8Vec2
impl RefUnwindSafe for U8Vec2
impl Send for U8Vec2
impl Sync for U8Vec2
impl Unpin for U8Vec2
impl UnsafeUnpin for U8Vec2
impl UnwindSafe for U8Vec2
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.