Skip to main content

UVec3

Struct UVec3 

Source
#[repr(C)]
pub struct UVec3 { pub x: u32, pub y: u32, pub z: u32, }
Expand description

A 3-dimensional vector.

Fields§

§x: u32§y: u32§z: u32

Implementations§

Source§

impl UVec3

Source

pub const ZERO: UVec3

All zeroes.

Source

pub const ONE: UVec3

All ones.

Source

pub const MIN: UVec3

All u32::MIN.

Source

pub const MAX: UVec3

All u32::MAX.

Source

pub const X: UVec3

A unit vector pointing along the positive X axis.

Source

pub const Y: UVec3

A unit vector pointing along the positive Y axis.

Source

pub const Z: UVec3

A unit vector pointing along the positive Z axis.

Source

pub const AXES: [UVec3; 3]

The unit axes.

Source

pub const fn new(x: u32, y: u32, z: u32) -> UVec3

Creates a new vector.

Source

pub const fn splat(v: u32) -> UVec3

Creates a vector with all elements set to v.

Source

pub fn map<F>(self, f: F) -> UVec3
where F: Fn(u32) -> u32,

Returns a vector containing each element of self modified by a mapping function f.

Source

pub fn select(mask: BVec3, if_true: UVec3, if_false: UVec3) -> UVec3

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.

Source

pub const fn from_array(a: [u32; 3]) -> UVec3

Creates a new vector from an array.

Source

pub const fn to_array(&self) -> [u32; 3]

Converts self to [x, y, z]

Source

pub const fn from_slice(slice: &[u32]) -> UVec3

Creates a vector from the first 3 values in slice.

§Panics

Panics if slice is less than 3 elements long.

Source

pub fn write_to_slice(self, slice: &mut [u32])

Writes the elements of self to the first 3 elements in slice.

§Panics

Panics if slice is less than 3 elements long.

Source

pub fn extend(self, w: u32) -> UVec4

Creates a 4D vector from self and the given w value.

Source

pub fn truncate(self) -> UVec2

Creates a 2D vector from the x and y elements of self, discarding z.

Truncation may also be performed by using self.xy().

Source

pub fn with_x(self, x: u32) -> UVec3

Creates a 3D vector from self with the given value of x.

Source

pub fn with_y(self, y: u32) -> UVec3

Creates a 3D vector from self with the given value of y.

Source

pub fn with_z(self, z: u32) -> UVec3

Creates a 3D vector from self with the given value of z.

Source

pub fn dot(self, rhs: UVec3) -> u32

Computes the dot product of self and rhs.

Source

pub fn dot_into_vec(self, rhs: UVec3) -> UVec3

Returns a vector where every component is the dot product of self and rhs.

Source

pub fn cross(self, rhs: UVec3) -> UVec3

Computes the cross product of self and rhs.

Source

pub fn min(self, rhs: UVec3) -> UVec3

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), ..].

Source

pub fn max(self, rhs: UVec3) -> UVec3

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), ..].

Source

pub fn clamp(self, min: UVec3, max: UVec3) -> UVec3

Component-wise clamping of values, similar to u32::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.

Source

pub fn min_element(self) -> u32

Returns the horizontal minimum of self.

In other words this computes min(x, y, ..).

Source

pub fn max_element(self) -> u32

Returns the horizontal maximum of self.

In other words this computes max(x, y, ..).

Source

pub fn min_position(self) -> usize

Returns the index of the first minimum element of self.

Source

pub fn max_position(self) -> usize

Returns the index of the first maximum element of self.

Source

pub fn element_sum(self) -> u32

Returns the sum of all elements of self.

In other words, this computes self.x + self.y + ...

Source

pub fn element_product(self) -> u32

Returns the product of all elements of self.

In other words, this computes self.x * self.y * ...

Source

pub fn cmpeq(self, rhs: UVec3) -> 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.

Source

pub fn cmpne(self, rhs: UVec3) -> 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.

Source

pub fn cmpge(self, rhs: UVec3) -> 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.

Source

pub fn cmpgt(self, rhs: UVec3) -> 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.

Source

pub fn cmple(self, rhs: UVec3) -> 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.

Source

pub fn cmplt(self, rhs: UVec3) -> 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.

Source

pub fn length_squared(self) -> u32

Computes the squared length of self.

Source

pub fn manhattan_distance(self, rhs: UVec3) -> u32

Computes the manhattan distance between two points.

§Overflow

This method may overflow if the result is greater than u32::MAX.

See also checked_manhattan_distance.

Source

pub fn checked_manhattan_distance(self, rhs: UVec3) -> Option<u32>

Computes the manhattan distance between two points.

This will returns None if the result is greater than u32::MAX.

Source

pub fn chebyshev_distance(self, rhs: UVec3) -> u32

Computes the chebyshev distance between two points.

Source

pub fn as_vec3(self) -> Vec3

Casts all elements of self to f32.

Source

pub fn as_vec3a(self) -> Vec3A

Casts all elements of self to f32.

Source

pub fn as_dvec3(self) -> DVec3

Casts all elements of self to f64.

Source

pub fn as_i8vec3(self) -> I8Vec3

Casts all elements of self to i8.

Source

pub fn as_u8vec3(self) -> U8Vec3

Casts all elements of self to u8.

Source

pub fn as_i16vec3(self) -> I16Vec3

Casts all elements of self to i16.

Source

pub fn as_u16vec3(self) -> U16Vec3

Casts all elements of self to u16.

Source

pub fn as_ivec3(self) -> IVec3

Casts all elements of self to i32.

Source

pub fn as_i64vec3(self) -> I64Vec3

Casts all elements of self to i64.

Source

pub fn as_u64vec3(self) -> U64Vec3

Casts all elements of self to u64.

Source

pub fn as_isizevec3(self) -> ISizeVec3

Casts all elements of self to isize.

Source

pub fn as_usizevec3(self) -> USizeVec3

Casts all elements of self to usize.

Source

pub const fn checked_add(self, rhs: UVec3) -> Option<UVec3>

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.

Source

pub const fn checked_sub(self, rhs: UVec3) -> Option<UVec3>

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.

Source

pub const fn checked_mul(self, rhs: UVec3) -> Option<UVec3>

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.

Source

pub const fn checked_div(self, rhs: UVec3) -> Option<UVec3>

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.

Source

pub const fn wrapping_add(self, rhs: UVec3) -> UVec3

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), ..].

Source

pub const fn wrapping_sub(self, rhs: UVec3) -> UVec3

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), ..].

Source

pub const fn wrapping_mul(self, rhs: UVec3) -> UVec3

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), ..].

Source

pub const fn wrapping_div(self, rhs: UVec3) -> UVec3

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), ..].

Source

pub const fn saturating_add(self, rhs: UVec3) -> UVec3

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), ..].

Source

pub const fn saturating_sub(self, rhs: UVec3) -> UVec3

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), ..].

Source

pub const fn saturating_mul(self, rhs: UVec3) -> UVec3

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), ..].

Source

pub const fn saturating_div(self, rhs: UVec3) -> UVec3

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), ..].

Source

pub const fn checked_add_signed(self, rhs: IVec3) -> Option<UVec3>

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.

Source

pub const fn wrapping_add_signed(self, rhs: IVec3) -> UVec3

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), ..].

Source

pub const fn saturating_add_signed(self, rhs: IVec3) -> UVec3

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 Add<&UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UVec3) -> UVec3

Performs the + operation. Read more
Source§

impl Add<&UVec3> for UVec3

Source§

type Output = UVec3

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UVec3) -> UVec3

Performs the + operation. Read more
Source§

impl Add<&u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u32) -> UVec3

Performs the + operation. Read more
Source§

impl Add<&u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u32) -> UVec3

Performs the + operation. Read more
Source§

impl Add<UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UVec3) -> UVec3

Performs the + operation. Read more
Source§

impl Add<u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u32) -> UVec3

Performs the + operation. Read more
Source§

impl Add<u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u32) -> UVec3

Performs the + operation. Read more
Source§

impl Add for UVec3

Source§

type Output = UVec3

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UVec3) -> UVec3

Performs the + operation. Read more
Source§

impl AddAssign<&UVec3> for UVec3

Source§

fn add_assign(&mut self, rhs: &UVec3)

Performs the += operation. Read more
Source§

impl AddAssign<&u32> for UVec3

Source§

fn add_assign(&mut self, rhs: &u32)

Performs the += operation. Read more
Source§

impl AddAssign<u32> for UVec3

Source§

fn add_assign(&mut self, rhs: u32)

Performs the += operation. Read more
Source§

impl AddAssign for UVec3

Source§

fn add_assign(&mut self, rhs: UVec3)

Performs the += operation. Read more
Source§

impl AsMut<[u32; 3]> for UVec3

Source§

fn as_mut(&mut self) -> &mut [u32; 3]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMutVectorParts<u32, 3> for UVec3
where UVec3: AsMut<[u32; 3]>, u32: VectorScalar,

Source§

fn as_mut_parts(&mut self) -> &mut [u32; 3]

Source§

impl AsRef<[u32; 3]> for UVec3

Source§

fn as_ref(&self) -> &[u32; 3]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRefVectorParts<u32, 3> for UVec3
where UVec3: AsRef<[u32; 3]>, u32: VectorScalar,

Source§

fn as_ref_parts(&self) -> &[u32; 3]

Source§

impl BitAnd<&UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UVec3) -> UVec3

Performs the & operation. Read more
Source§

impl BitAnd<&UVec3> for UVec3

Source§

type Output = UVec3

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UVec3) -> UVec3

Performs the & operation. Read more
Source§

impl BitAnd<&u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u32) -> UVec3

Performs the & operation. Read more
Source§

impl BitAnd<&u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u32) -> UVec3

Performs the & operation. Read more
Source§

impl BitAnd<UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UVec3) -> UVec3

Performs the & operation. Read more
Source§

impl BitAnd<u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u32) -> UVec3

Performs the & operation. Read more
Source§

impl BitAnd<u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u32) -> <UVec3 as BitAnd<u32>>::Output

Performs the & operation. Read more
Source§

impl BitAnd for UVec3

Source§

type Output = UVec3

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UVec3) -> <UVec3 as BitAnd>::Output

Performs the & operation. Read more
Source§

impl BitAndAssign<&UVec3> for UVec3

Source§

fn bitand_assign(&mut self, rhs: &UVec3)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&u32> for UVec3

Source§

fn bitand_assign(&mut self, rhs: &u32)

Performs the &= operation. Read more
Source§

impl BitAndAssign<u32> for UVec3

Source§

fn bitand_assign(&mut self, rhs: u32)

Performs the &= operation. Read more
Source§

impl BitAndAssign for UVec3

Source§

fn bitand_assign(&mut self, rhs: UVec3)

Performs the &= operation. Read more
Source§

impl BitOr<&UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UVec3) -> UVec3

Performs the | operation. Read more
Source§

impl BitOr<&UVec3> for UVec3

Source§

type Output = UVec3

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UVec3) -> UVec3

Performs the | operation. Read more
Source§

impl BitOr<&u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u32) -> UVec3

Performs the | operation. Read more
Source§

impl BitOr<&u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u32) -> UVec3

Performs the | operation. Read more
Source§

impl BitOr<UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UVec3) -> UVec3

Performs the | operation. Read more
Source§

impl BitOr<u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u32) -> UVec3

Performs the | operation. Read more
Source§

impl BitOr<u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u32) -> <UVec3 as BitOr<u32>>::Output

Performs the | operation. Read more
Source§

impl BitOr for UVec3

Source§

type Output = UVec3

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UVec3) -> <UVec3 as BitOr>::Output

Performs the | operation. Read more
Source§

impl BitOrAssign<&UVec3> for UVec3

Source§

fn bitor_assign(&mut self, rhs: &UVec3)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&u32> for UVec3

Source§

fn bitor_assign(&mut self, rhs: &u32)

Performs the |= operation. Read more
Source§

impl BitOrAssign<u32> for UVec3

Source§

fn bitor_assign(&mut self, rhs: u32)

Performs the |= operation. Read more
Source§

impl BitOrAssign for UVec3

Source§

fn bitor_assign(&mut self, rhs: UVec3)

Performs the |= operation. Read more
Source§

impl BitXor<&UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UVec3) -> UVec3

Performs the ^ operation. Read more
Source§

impl BitXor<&UVec3> for UVec3

Source§

type Output = UVec3

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UVec3) -> UVec3

Performs the ^ operation. Read more
Source§

impl BitXor<&u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u32) -> UVec3

Performs the ^ operation. Read more
Source§

impl BitXor<&u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u32) -> UVec3

Performs the ^ operation. Read more
Source§

impl BitXor<UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UVec3) -> UVec3

Performs the ^ operation. Read more
Source§

impl BitXor<u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u32) -> UVec3

Performs the ^ operation. Read more
Source§

impl BitXor<u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u32) -> <UVec3 as BitXor<u32>>::Output

Performs the ^ operation. Read more
Source§

impl BitXor for UVec3

Source§

type Output = UVec3

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UVec3) -> <UVec3 as BitXor>::Output

Performs the ^ operation. Read more
Source§

impl BitXorAssign<&UVec3> for UVec3

Source§

fn bitxor_assign(&mut self, rhs: &UVec3)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&u32> for UVec3

Source§

fn bitxor_assign(&mut self, rhs: &u32)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<u32> for UVec3

Source§

fn bitxor_assign(&mut self, rhs: u32)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for UVec3

Source§

fn bitxor_assign(&mut self, rhs: UVec3)

Performs the ^= operation. Read more
Source§

impl Clone for UVec3

Source§

fn clone(&self) -> UVec3

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CreateFrom for UVec3
where UVec3: FromVectorParts<u32, 3>, u32: VectorScalar + CreateFrom,

Source§

fn create_from<B>(reader: &mut Reader<B>) -> UVec3
where B: BufferRef,

Source§

impl Debug for UVec3

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for UVec3

Source§

fn default() -> UVec3

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for UVec3

Deserialize expects a sequence of 3 values.

Source§

fn deserialize<D>( deserializer: D, ) -> Result<UVec3, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for UVec3

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Div<&UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &UVec3) -> UVec3

Performs the / operation. Read more
Source§

impl Div<&UVec3> for UVec3

Source§

type Output = UVec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &UVec3) -> UVec3

Performs the / operation. Read more
Source§

impl Div<&u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u32) -> UVec3

Performs the / operation. Read more
Source§

impl Div<&u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u32) -> UVec3

Performs the / operation. Read more
Source§

impl Div<UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: UVec3) -> UVec3

Performs the / operation. Read more
Source§

impl Div<u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u32) -> UVec3

Performs the / operation. Read more
Source§

impl Div<u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u32) -> UVec3

Performs the / operation. Read more
Source§

impl Div for UVec3

Source§

type Output = UVec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: UVec3) -> UVec3

Performs the / operation. Read more
Source§

impl DivAssign<&UVec3> for UVec3

Source§

fn div_assign(&mut self, rhs: &UVec3)

Performs the /= operation. Read more
Source§

impl DivAssign<&u32> for UVec3

Source§

fn div_assign(&mut self, rhs: &u32)

Performs the /= operation. Read more
Source§

impl DivAssign<u32> for UVec3

Source§

fn div_assign(&mut self, rhs: u32)

Performs the /= operation. Read more
Source§

impl DivAssign for UVec3

Source§

fn div_assign(&mut self, rhs: UVec3)

Performs the /= operation. Read more
Source§

impl From<[u32; 3]> for UVec3

Source§

fn from(a: [u32; 3]) -> UVec3

Converts to this type from the input type.
Source§

impl From<(UVec2, u32)> for UVec3

Source§

fn from(_: (UVec2, u32)) -> UVec3

Converts to this type from the input type.
Source§

impl From<(u32, u32, u32)> for UVec3

Source§

fn from(t: (u32, u32, u32)) -> UVec3

Converts to this type from the input type.
Source§

impl From<BVec3> for UVec3

Source§

fn from(v: BVec3) -> UVec3

Converts to this type from the input type.
Source§

impl From<BVec3A> for UVec3

Source§

fn from(v: BVec3A) -> UVec3

Converts to this type from the input type.
Source§

impl From<U16Vec3> for UVec3

Source§

fn from(v: U16Vec3) -> UVec3

Converts to this type from the input type.
Source§

impl From<U8Vec3> for UVec3

Source§

fn from(v: U8Vec3) -> UVec3

Converts to this type from the input type.
Source§

impl From<UVec3> for DVec3

Source§

fn from(v: UVec3) -> DVec3

Converts to this type from the input type.
Source§

impl From<UVec3> for I64Vec3

Source§

fn from(v: UVec3) -> I64Vec3

Converts to this type from the input type.
Source§

impl From<UVec3> for U64Vec3

Source§

fn from(v: UVec3) -> U64Vec3

Converts to this type from the input type.
Source§

impl FromVectorParts<u32, 3> for UVec3
where UVec3: From<[u32; 3]>, u32: VectorScalar,

Source§

fn from_parts(parts: [u32; 3]) -> UVec3

Source§

impl Hash for UVec3

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Index<usize> for UVec3

Source§

type Output = u32

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &<UVec3 as Index<usize>>::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl IndexMut<usize> for UVec3

Source§

fn index_mut(&mut self, index: usize) -> &mut <UVec3 as Index<usize>>::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl Mul<&UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UVec3) -> UVec3

Performs the * operation. Read more
Source§

impl Mul<&UVec3> for UVec3

Source§

type Output = UVec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UVec3) -> UVec3

Performs the * operation. Read more
Source§

impl Mul<&u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u32) -> UVec3

Performs the * operation. Read more
Source§

impl Mul<&u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u32) -> UVec3

Performs the * operation. Read more
Source§

impl Mul<UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UVec3) -> UVec3

Performs the * operation. Read more
Source§

impl Mul<u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u32) -> UVec3

Performs the * operation. Read more
Source§

impl Mul<u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u32) -> UVec3

Performs the * operation. Read more
Source§

impl Mul for UVec3

Source§

type Output = UVec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UVec3) -> UVec3

Performs the * operation. Read more
Source§

impl MulAssign<&UVec3> for UVec3

Source§

fn mul_assign(&mut self, rhs: &UVec3)

Performs the *= operation. Read more
Source§

impl MulAssign<&u32> for UVec3

Source§

fn mul_assign(&mut self, rhs: &u32)

Performs the *= operation. Read more
Source§

impl MulAssign<u32> for UVec3

Source§

fn mul_assign(&mut self, rhs: u32)

Performs the *= operation. Read more
Source§

impl MulAssign for UVec3

Source§

fn mul_assign(&mut self, rhs: UVec3)

Performs the *= operation. Read more
Source§

impl Not for &UVec3

Source§

type Output = UVec3

The resulting type after applying the ! operator.
Source§

fn not(self) -> UVec3

Performs the unary ! operation. Read more
Source§

impl Not for UVec3

Source§

type Output = UVec3

The resulting type after applying the ! operator.
Source§

fn not(self) -> UVec3

Performs the unary ! operation. Read more
Source§

impl PartialEq for UVec3

Source§

fn eq(&self, other: &UVec3) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> Product<&'a UVec3> for UVec3

Source§

fn product<I>(iter: I) -> UVec3
where I: Iterator<Item = &'a UVec3>,

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Product for UVec3

Source§

fn product<I>(iter: I) -> UVec3
where I: Iterator<Item = UVec3>,

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl ReadFrom for UVec3
where UVec3: AsMutVectorParts<u32, 3>, u32: VectorScalar + ReadFrom,

Source§

fn read_from<B>(&mut self, reader: &mut Reader<B>)
where B: BufferRef,

Source§

impl Rem<&UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &UVec3) -> UVec3

Performs the % operation. Read more
Source§

impl Rem<&UVec3> for UVec3

Source§

type Output = UVec3

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &UVec3) -> UVec3

Performs the % operation. Read more
Source§

impl Rem<&u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u32) -> UVec3

Performs the % operation. Read more
Source§

impl Rem<&u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u32) -> UVec3

Performs the % operation. Read more
Source§

impl Rem<UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: UVec3) -> UVec3

Performs the % operation. Read more
Source§

impl Rem<u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u32) -> UVec3

Performs the % operation. Read more
Source§

impl Rem<u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u32) -> UVec3

Performs the % operation. Read more
Source§

impl Rem for UVec3

Source§

type Output = UVec3

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: UVec3) -> UVec3

Performs the % operation. Read more
Source§

impl RemAssign<&UVec3> for UVec3

Source§

fn rem_assign(&mut self, rhs: &UVec3)

Performs the %= operation. Read more
Source§

impl RemAssign<&u32> for UVec3

Source§

fn rem_assign(&mut self, rhs: &u32)

Performs the %= operation. Read more
Source§

impl RemAssign<u32> for UVec3

Source§

fn rem_assign(&mut self, rhs: u32)

Performs the %= operation. Read more
Source§

impl RemAssign for UVec3

Source§

fn rem_assign(&mut self, rhs: UVec3)

Performs the %= operation. Read more
Source§

impl SampleUniform for UVec3

Source§

type Sampler = UniformVec3<UniformInt<u32>>

The UniformSampler implementation supporting type X.
Source§

impl Serialize for UVec3

Serialize as a sequence of 3 values.

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl ShaderSize for UVec3
where u32: ShaderSize,

§

const SHADER_SIZE: NonZero<u64> = _

Represents WGSL Size (equivalent to [ShaderType::min_size])
Source§

impl ShaderType for UVec3
where u32: ShaderSize,

§

fn min_size() -> NonZero<u64>

Represents the minimum size of Self (equivalent to GPUBufferBindingLayout.minBindingSize) Read more
§

fn size(&self) -> NonZero<u64>

Returns the size of Self at runtime Read more
§

fn assert_uniform_compat()

Source§

impl Shl<&IVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &IVec3) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&IVec3> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &IVec3) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for &I16Vec3

Source§

type Output = I16Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> I16Vec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for &I64Vec3

Source§

type Output = I64Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> I64Vec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for &I8Vec3

Source§

type Output = I8Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> I8Vec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for &ISizeVec3

Source§

type Output = ISizeVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> ISizeVec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for &IVec3

Source§

type Output = IVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> IVec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for &U16Vec3

Source§

type Output = U16Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> U16Vec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for &U64Vec3

Source§

type Output = U64Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> U64Vec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for &U8Vec3

Source§

type Output = U8Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> U8Vec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for &USizeVec3

Source§

type Output = USizeVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> USizeVec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for I16Vec3

Source§

type Output = I16Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> I16Vec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for I64Vec3

Source§

type Output = I64Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> I64Vec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for I8Vec3

Source§

type Output = I8Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> I8Vec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for ISizeVec3

Source§

type Output = ISizeVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> ISizeVec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for IVec3

Source§

type Output = IVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> IVec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for U16Vec3

Source§

type Output = U16Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> U16Vec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for U64Vec3

Source§

type Output = U64Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> U64Vec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for U8Vec3

Source§

type Output = U8Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> U8Vec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for USizeVec3

Source§

type Output = USizeVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> USizeVec3

Performs the << operation. Read more
Source§

impl Shl<&UVec3> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &UVec3) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&i16> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i16) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&i16> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i16) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&i32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i32) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&i32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i32) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&i64> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i64) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&i64> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i64) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&i8> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i8) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&i8> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i8) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&u16> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u16) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&u16> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u16) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u32) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u32) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&u64> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u64) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&u64> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u64) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&u8> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u8) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<&u8> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u8) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<IVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: IVec3) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<IVec3> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: IVec3) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for &I16Vec3

Source§

type Output = I16Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> I16Vec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for &I64Vec3

Source§

type Output = I64Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> I64Vec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for &I8Vec3

Source§

type Output = I8Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> I8Vec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for &ISizeVec3

Source§

type Output = ISizeVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> ISizeVec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for &IVec3

Source§

type Output = IVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> IVec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for &U16Vec3

Source§

type Output = U16Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> U16Vec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for &U64Vec3

Source§

type Output = U64Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> U64Vec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for &U8Vec3

Source§

type Output = U8Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> U8Vec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for &USizeVec3

Source§

type Output = USizeVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> USizeVec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for I16Vec3

Source§

type Output = I16Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> I16Vec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for I64Vec3

Source§

type Output = I64Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> I64Vec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for I8Vec3

Source§

type Output = I8Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> I8Vec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for ISizeVec3

Source§

type Output = ISizeVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> ISizeVec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for IVec3

Source§

type Output = IVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> IVec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for U16Vec3

Source§

type Output = U16Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> U16Vec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for U64Vec3

Source§

type Output = U64Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> U64Vec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for U8Vec3

Source§

type Output = U8Vec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> U8Vec3

Performs the << operation. Read more
Source§

impl Shl<UVec3> for USizeVec3

Source§

type Output = USizeVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> USizeVec3

Performs the << operation. Read more
Source§

impl Shl<i16> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i16) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<i16> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i16) -> <UVec3 as Shl<i16>>::Output

Performs the << operation. Read more
Source§

impl Shl<i32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i32) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<i32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i32) -> <UVec3 as Shl<i32>>::Output

Performs the << operation. Read more
Source§

impl Shl<i64> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i64) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<i64> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i64) -> <UVec3 as Shl<i64>>::Output

Performs the << operation. Read more
Source§

impl Shl<i8> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i8) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<i8> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i8) -> <UVec3 as Shl<i8>>::Output

Performs the << operation. Read more
Source§

impl Shl<u16> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u16) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<u16> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u16) -> <UVec3 as Shl<u16>>::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> <UVec3 as Shl<u32>>::Output

Performs the << operation. Read more
Source§

impl Shl<u64> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u64) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<u64> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u64) -> <UVec3 as Shl<u64>>::Output

Performs the << operation. Read more
Source§

impl Shl<u8> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u8) -> UVec3

Performs the << operation. Read more
Source§

impl Shl<u8> for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u8) -> <UVec3 as Shl<u8>>::Output

Performs the << operation. Read more
Source§

impl Shl for UVec3

Source§

type Output = UVec3

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: UVec3) -> UVec3

Performs the << operation. Read more
Source§

impl ShlAssign<&i16> for UVec3

Source§

fn shl_assign(&mut self, rhs: &i16)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&i32> for UVec3

Source§

fn shl_assign(&mut self, rhs: &i32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&i64> for UVec3

Source§

fn shl_assign(&mut self, rhs: &i64)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&i8> for UVec3

Source§

fn shl_assign(&mut self, rhs: &i8)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&u16> for UVec3

Source§

fn shl_assign(&mut self, rhs: &u16)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&u32> for UVec3

Source§

fn shl_assign(&mut self, rhs: &u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&u64> for UVec3

Source§

fn shl_assign(&mut self, rhs: &u64)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&u8> for UVec3

Source§

fn shl_assign(&mut self, rhs: &u8)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i16> for UVec3

Source§

fn shl_assign(&mut self, rhs: i16)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i32> for UVec3

Source§

fn shl_assign(&mut self, rhs: i32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i64> for UVec3

Source§

fn shl_assign(&mut self, rhs: i64)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i8> for UVec3

Source§

fn shl_assign(&mut self, rhs: i8)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u16> for UVec3

Source§

fn shl_assign(&mut self, rhs: u16)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for UVec3

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u64> for UVec3

Source§

fn shl_assign(&mut self, rhs: u64)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u8> for UVec3

Source§

fn shl_assign(&mut self, rhs: u8)

Performs the <<= operation. Read more
Source§

impl Shr<&IVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &IVec3) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&IVec3> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &IVec3) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for &I16Vec3

Source§

type Output = I16Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> I16Vec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for &I64Vec3

Source§

type Output = I64Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> I64Vec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for &I8Vec3

Source§

type Output = I8Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> I8Vec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for &ISizeVec3

Source§

type Output = ISizeVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> ISizeVec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for &IVec3

Source§

type Output = IVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> IVec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for &U16Vec3

Source§

type Output = U16Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> U16Vec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for &U64Vec3

Source§

type Output = U64Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> U64Vec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for &U8Vec3

Source§

type Output = U8Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> U8Vec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for &USizeVec3

Source§

type Output = USizeVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> USizeVec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for I16Vec3

Source§

type Output = I16Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> I16Vec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for I64Vec3

Source§

type Output = I64Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> I64Vec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for I8Vec3

Source§

type Output = I8Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> I8Vec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for ISizeVec3

Source§

type Output = ISizeVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> ISizeVec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for IVec3

Source§

type Output = IVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> IVec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for U16Vec3

Source§

type Output = U16Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> U16Vec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for U64Vec3

Source§

type Output = U64Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> U64Vec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for U8Vec3

Source§

type Output = U8Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> U8Vec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for USizeVec3

Source§

type Output = USizeVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> USizeVec3

Performs the >> operation. Read more
Source§

impl Shr<&UVec3> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &UVec3) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&i16> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i16) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&i16> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i16) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&i32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i32) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&i32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i32) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&i64> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i64) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&i64> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i64) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&i8> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i8) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&i8> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i8) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&u16> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u16) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&u16> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u16) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u32) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u32) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&u64> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u64) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&u64> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u64) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&u8> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u8) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<&u8> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u8) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<IVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: IVec3) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<IVec3> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: IVec3) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for &I16Vec3

Source§

type Output = I16Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> I16Vec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for &I64Vec3

Source§

type Output = I64Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> I64Vec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for &I8Vec3

Source§

type Output = I8Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> I8Vec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for &ISizeVec3

Source§

type Output = ISizeVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> ISizeVec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for &IVec3

Source§

type Output = IVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> IVec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for &U16Vec3

Source§

type Output = U16Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> U16Vec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for &U64Vec3

Source§

type Output = U64Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> U64Vec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for &U8Vec3

Source§

type Output = U8Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> U8Vec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for &USizeVec3

Source§

type Output = USizeVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> USizeVec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for I16Vec3

Source§

type Output = I16Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> I16Vec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for I64Vec3

Source§

type Output = I64Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> I64Vec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for I8Vec3

Source§

type Output = I8Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> I8Vec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for ISizeVec3

Source§

type Output = ISizeVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> ISizeVec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for IVec3

Source§

type Output = IVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> IVec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for U16Vec3

Source§

type Output = U16Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> U16Vec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for U64Vec3

Source§

type Output = U64Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> U64Vec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for U8Vec3

Source§

type Output = U8Vec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> U8Vec3

Performs the >> operation. Read more
Source§

impl Shr<UVec3> for USizeVec3

Source§

type Output = USizeVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> USizeVec3

Performs the >> operation. Read more
Source§

impl Shr<i16> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i16) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<i16> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i16) -> <UVec3 as Shr<i16>>::Output

Performs the >> operation. Read more
Source§

impl Shr<i32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i32) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<i32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i32) -> <UVec3 as Shr<i32>>::Output

Performs the >> operation. Read more
Source§

impl Shr<i64> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i64) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<i64> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i64) -> <UVec3 as Shr<i64>>::Output

Performs the >> operation. Read more
Source§

impl Shr<i8> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i8) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<i8> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i8) -> <UVec3 as Shr<i8>>::Output

Performs the >> operation. Read more
Source§

impl Shr<u16> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u16) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<u16> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u16) -> <UVec3 as Shr<u16>>::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> <UVec3 as Shr<u32>>::Output

Performs the >> operation. Read more
Source§

impl Shr<u64> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u64) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<u64> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u64) -> <UVec3 as Shr<u64>>::Output

Performs the >> operation. Read more
Source§

impl Shr<u8> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u8) -> UVec3

Performs the >> operation. Read more
Source§

impl Shr<u8> for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u8) -> <UVec3 as Shr<u8>>::Output

Performs the >> operation. Read more
Source§

impl Shr for UVec3

Source§

type Output = UVec3

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: UVec3) -> UVec3

Performs the >> operation. Read more
Source§

impl ShrAssign<&i16> for UVec3

Source§

fn shr_assign(&mut self, rhs: &i16)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&i32> for UVec3

Source§

fn shr_assign(&mut self, rhs: &i32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&i64> for UVec3

Source§

fn shr_assign(&mut self, rhs: &i64)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&i8> for UVec3

Source§

fn shr_assign(&mut self, rhs: &i8)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&u16> for UVec3

Source§

fn shr_assign(&mut self, rhs: &u16)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&u32> for UVec3

Source§

fn shr_assign(&mut self, rhs: &u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&u64> for UVec3

Source§

fn shr_assign(&mut self, rhs: &u64)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&u8> for UVec3

Source§

fn shr_assign(&mut self, rhs: &u8)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i16> for UVec3

Source§

fn shr_assign(&mut self, rhs: i16)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i32> for UVec3

Source§

fn shr_assign(&mut self, rhs: i32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i64> for UVec3

Source§

fn shr_assign(&mut self, rhs: i64)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i8> for UVec3

Source§

fn shr_assign(&mut self, rhs: i8)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u16> for UVec3

Source§

fn shr_assign(&mut self, rhs: u16)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for UVec3

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u64> for UVec3

Source§

fn shr_assign(&mut self, rhs: u64)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u8> for UVec3

Source§

fn shr_assign(&mut self, rhs: u8)

Performs the >>= operation. Read more
Source§

impl Sub<&UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UVec3) -> UVec3

Performs the - operation. Read more
Source§

impl Sub<&UVec3> for UVec3

Source§

type Output = UVec3

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UVec3) -> UVec3

Performs the - operation. Read more
Source§

impl Sub<&u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u32) -> UVec3

Performs the - operation. Read more
Source§

impl Sub<&u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u32) -> UVec3

Performs the - operation. Read more
Source§

impl Sub<UVec3> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UVec3) -> UVec3

Performs the - operation. Read more
Source§

impl Sub<u32> for &UVec3

Source§

type Output = UVec3

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u32) -> UVec3

Performs the - operation. Read more
Source§

impl Sub<u32> for UVec3

Source§

type Output = UVec3

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u32) -> UVec3

Performs the - operation. Read more
Source§

impl Sub for UVec3

Source§

type Output = UVec3

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UVec3) -> UVec3

Performs the - operation. Read more
Source§

impl SubAssign<&UVec3> for UVec3

Source§

fn sub_assign(&mut self, rhs: &UVec3)

Performs the -= operation. Read more
Source§

impl SubAssign<&u32> for UVec3

Source§

fn sub_assign(&mut self, rhs: &u32)

Performs the -= operation. Read more
Source§

impl SubAssign<u32> for UVec3

Source§

fn sub_assign(&mut self, rhs: u32)

Performs the -= operation. Read more
Source§

impl SubAssign for UVec3

Source§

fn sub_assign(&mut self, rhs: UVec3)

Performs the -= operation. Read more
Source§

impl<'a> Sum<&'a UVec3> for UVec3

Source§

fn sum<I>(iter: I) -> UVec3
where I: Iterator<Item = &'a UVec3>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum for UVec3

Source§

fn sum<I>(iter: I) -> UVec3
where I: Iterator<Item = UVec3>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl TryFrom<I16Vec3> for UVec3

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(v: I16Vec3) -> Result<UVec3, <UVec3 as TryFrom<I16Vec3>>::Error>

Performs the conversion.
Source§

impl TryFrom<I64Vec3> for UVec3

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(v: I64Vec3) -> Result<UVec3, <UVec3 as TryFrom<I64Vec3>>::Error>

Performs the conversion.
Source§

impl TryFrom<I8Vec3> for UVec3

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(v: I8Vec3) -> Result<UVec3, <UVec3 as TryFrom<I8Vec3>>::Error>

Performs the conversion.
Source§

impl TryFrom<ISizeVec3> for UVec3

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(v: ISizeVec3) -> Result<UVec3, <UVec3 as TryFrom<ISizeVec3>>::Error>

Performs the conversion.
Source§

impl TryFrom<IVec3> for UVec3

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(v: IVec3) -> Result<UVec3, <UVec3 as TryFrom<IVec3>>::Error>

Performs the conversion.
Source§

impl TryFrom<U64Vec3> for UVec3

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(v: U64Vec3) -> Result<UVec3, <UVec3 as TryFrom<U64Vec3>>::Error>

Performs the conversion.
Source§

impl TryFrom<USizeVec3> for UVec3

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(v: USizeVec3) -> Result<UVec3, <UVec3 as TryFrom<USizeVec3>>::Error>

Performs the conversion.
Source§

impl TryFrom<UVec3> for I16Vec3

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(v: UVec3) -> Result<I16Vec3, <I16Vec3 as TryFrom<UVec3>>::Error>

Performs the conversion.
Source§

impl TryFrom<UVec3> for I8Vec3

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(v: UVec3) -> Result<I8Vec3, <I8Vec3 as TryFrom<UVec3>>::Error>

Performs the conversion.
Source§

impl TryFrom<UVec3> for ISizeVec3

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(v: UVec3) -> Result<ISizeVec3, <ISizeVec3 as TryFrom<UVec3>>::Error>

Performs the conversion.
Source§

impl TryFrom<UVec3> for IVec3

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(v: UVec3) -> Result<IVec3, <IVec3 as TryFrom<UVec3>>::Error>

Performs the conversion.
Source§

impl TryFrom<UVec3> for U16Vec3

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(v: UVec3) -> Result<U16Vec3, <U16Vec3 as TryFrom<UVec3>>::Error>

Performs the conversion.
Source§

impl TryFrom<UVec3> for U8Vec3

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(v: UVec3) -> Result<U8Vec3, <U8Vec3 as TryFrom<UVec3>>::Error>

Performs the conversion.
Source§

impl TryFrom<UVec3> for USizeVec3

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(v: UVec3) -> Result<USizeVec3, <USizeVec3 as TryFrom<UVec3>>::Error>

Performs the conversion.
Source§

impl Vec3Swizzles for UVec3

Source§

type Vec2 = UVec2

Source§

type Vec4 = UVec4

Source§

fn xx(self) -> UVec2

Source§

fn xy(self) -> UVec2

Source§

fn with_xy(self, rhs: UVec2) -> UVec3

Source§

fn xz(self) -> UVec2

Source§

fn with_xz(self, rhs: UVec2) -> UVec3

Source§

fn yx(self) -> UVec2

Source§

fn with_yx(self, rhs: UVec2) -> UVec3

Source§

fn yy(self) -> UVec2

Source§

fn yz(self) -> UVec2

Source§

fn with_yz(self, rhs: UVec2) -> UVec3

Source§

fn zx(self) -> UVec2

Source§

fn with_zx(self, rhs: UVec2) -> UVec3

Source§

fn zy(self) -> UVec2

Source§

fn with_zy(self, rhs: UVec2) -> UVec3

Source§

fn zz(self) -> UVec2

Source§

fn xxx(self) -> UVec3

Source§

fn xxy(self) -> UVec3

Source§

fn xxz(self) -> UVec3

Source§

fn xyx(self) -> UVec3

Source§

fn xyy(self) -> UVec3

Source§

fn xzx(self) -> UVec3

Source§

fn xzy(self) -> UVec3

Source§

fn xzz(self) -> UVec3

Source§

fn yxx(self) -> UVec3

Source§

fn yxy(self) -> UVec3

Source§

fn yxz(self) -> UVec3

Source§

fn yyx(self) -> UVec3

Source§

fn yyy(self) -> UVec3

Source§

fn yyz(self) -> UVec3

Source§

fn yzx(self) -> UVec3

Source§

fn yzy(self) -> UVec3

Source§

fn yzz(self) -> UVec3

Source§

fn zxx(self) -> UVec3

Source§

fn zxy(self) -> UVec3

Source§

fn zxz(self) -> UVec3

Source§

fn zyx(self) -> UVec3

Source§

fn zyy(self) -> UVec3

Source§

fn zyz(self) -> UVec3

Source§

fn zzx(self) -> UVec3

Source§

fn zzy(self) -> UVec3

Source§

fn zzz(self) -> UVec3

Source§

fn xxxx(self) -> UVec4

Source§

fn xxxy(self) -> UVec4

Source§

fn xxxz(self) -> UVec4

Source§

fn xxyx(self) -> UVec4

Source§

fn xxyy(self) -> UVec4

Source§

fn xxyz(self) -> UVec4

Source§

fn xxzx(self) -> UVec4

Source§

fn xxzy(self) -> UVec4

Source§

fn xxzz(self) -> UVec4

Source§

fn xyxx(self) -> UVec4

Source§

fn xyxy(self) -> UVec4

Source§

fn xyxz(self) -> UVec4

Source§

fn xyyx(self) -> UVec4

Source§

fn xyyy(self) -> UVec4

Source§

fn xyyz(self) -> UVec4

Source§

fn xyzx(self) -> UVec4

Source§

fn xyzy(self) -> UVec4

Source§

fn xyzz(self) -> UVec4

Source§

fn xzxx(self) -> UVec4

Source§

fn xzxy(self) -> UVec4

Source§

fn xzxz(self) -> UVec4

Source§

fn xzyx(self) -> UVec4

Source§

fn xzyy(self) -> UVec4

Source§

fn xzyz(self) -> UVec4

Source§

fn xzzx(self) -> UVec4

Source§

fn xzzy(self) -> UVec4

Source§

fn xzzz(self) -> UVec4

Source§

fn yxxx(self) -> UVec4

Source§

fn yxxy(self) -> UVec4

Source§

fn yxxz(self) -> UVec4

Source§

fn yxyx(self) -> UVec4

Source§

fn yxyy(self) -> UVec4

Source§

fn yxyz(self) -> UVec4

Source§

fn yxzx(self) -> UVec4

Source§

fn yxzy(self) -> UVec4

Source§

fn yxzz(self) -> UVec4

Source§

fn yyxx(self) -> UVec4

Source§

fn yyxy(self) -> UVec4

Source§

fn yyxz(self) -> UVec4

Source§

fn yyyx(self) -> UVec4

Source§

fn yyyy(self) -> UVec4

Source§

fn yyyz(self) -> UVec4

Source§

fn yyzx(self) -> UVec4

Source§

fn yyzy(self) -> UVec4

Source§

fn yyzz(self) -> UVec4

Source§

fn yzxx(self) -> UVec4

Source§

fn yzxy(self) -> UVec4

Source§

fn yzxz(self) -> UVec4

Source§

fn yzyx(self) -> UVec4

Source§

fn yzyy(self) -> UVec4

Source§

fn yzyz(self) -> UVec4

Source§

fn yzzx(self) -> UVec4

Source§

fn yzzy(self) -> UVec4

Source§

fn yzzz(self) -> UVec4

Source§

fn zxxx(self) -> UVec4

Source§

fn zxxy(self) -> UVec4

Source§

fn zxxz(self) -> UVec4

Source§

fn zxyx(self) -> UVec4

Source§

fn zxyy(self) -> UVec4

Source§

fn zxyz(self) -> UVec4

Source§

fn zxzx(self) -> UVec4

Source§

fn zxzy(self) -> UVec4

Source§

fn zxzz(self) -> UVec4

Source§

fn zyxx(self) -> UVec4

Source§

fn zyxy(self) -> UVec4

Source§

fn zyxz(self) -> UVec4

Source§

fn zyyx(self) -> UVec4

Source§

fn zyyy(self) -> UVec4

Source§

fn zyyz(self) -> UVec4

Source§

fn zyzx(self) -> UVec4

Source§

fn zyzy(self) -> UVec4

Source§

fn zyzz(self) -> UVec4

Source§

fn zzxx(self) -> UVec4

Source§

fn zzxy(self) -> UVec4

Source§

fn zzxz(self) -> UVec4

Source§

fn zzyx(self) -> UVec4

Source§

fn zzyy(self) -> UVec4

Source§

fn zzyz(self) -> UVec4

Source§

fn zzzx(self) -> UVec4

Source§

fn zzzy(self) -> UVec4

Source§

fn zzzz(self) -> UVec4

Source§

fn xyz(self) -> Self

Source§

impl WriteInto for UVec3
where UVec3: AsRefVectorParts<u32, 3>, u32: VectorScalar + WriteInto,

Source§

fn write_into<B>(&self, writer: &mut Writer<B>)
where B: BufferMut,

Source§

impl Zeroable for UVec3

§

fn zeroed() -> Self

Source§

impl Copy for UVec3

Source§

impl Eq for UVec3

Source§

impl Pod for UVec3

Source§

impl StructuralPartialEq for UVec3

Auto Trait Implementations§

§

impl Freeze for UVec3

§

impl RefUnwindSafe for UVec3

§

impl Send for UVec3

§

impl Sync for UVec3

§

impl Unpin for UVec3

§

impl UnsafeUnpin for UVec3

§

impl UnwindSafe for UVec3

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

§

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.
§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<T> Fmt for T
where T: Display,

§

fn fg<C>(self, color: C) -> Foreground<Self>
where C: Into<Option<Color>>, Self: Display,

Give this value the specified foreground colour.
§

fn bg<C>(self, color: C) -> Background<Self>
where C: Into<Option<Color>>, Self: Display,

Give this value the specified background colour.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, W> HasTypeWitness<W> for T
where W: MakeTypeWitness<Arg = T>, T: ?Sized,

§

const WITNESS: W = W::MAKE

A constant of the type witness
§

impl<T> Identity for T
where T: ?Sized,

§

const TYPE_EQ: TypeEq<T, <T as Identity>::Type> = TypeEq::NEW

Proof that Self is the same type as Self::Type, provides methods for casting between Self and Self::Type.
§

type Type = T

The same type as Self, used to emulate type equality bounds (T == U) with associated type equality constraints (T: Identity<Type = U>).
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<'src, T> IntoMaybe<'src, T> for T
where T: 'src,

§

type Proj<U: 'src> = U

§

fn map_maybe<R>( self, _f: impl FnOnce(&'src T) -> &'src R, g: impl FnOnce(T) -> R, ) -> <T as IntoMaybe<'src, T>>::Proj<R>
where R: 'src,

§

impl<T> Paint for T
where T: ?Sized,

§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and green(), which have the same functionality but are pithier.

§Example

Set foreground color to white using fg():

use yansi::{Paint, Color};

painted.fg(Color::White);

Set foreground color to white using white().

use yansi::Paint;

painted.white();
§

fn primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Primary].

§Example
println!("{}", value.primary());
§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Fixed].

§Example
println!("{}", value.fixed(color));
§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Rgb].

§Example
println!("{}", value.rgb(r, g, b));
§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Black].

§Example
println!("{}", value.black());
§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Red].

§Example
println!("{}", value.red());
§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Green].

§Example
println!("{}", value.green());
§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Yellow].

§Example
println!("{}", value.yellow());
§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Blue].

§Example
println!("{}", value.blue());
§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Magenta].

§Example
println!("{}", value.magenta());
§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Cyan].

§Example
println!("{}", value.cyan());
§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: White].

§Example
println!("{}", value.white());
§

fn bright_black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlack].

§Example
println!("{}", value.bright_black());
§

fn bright_red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightRed].

§Example
println!("{}", value.bright_red());
§

fn bright_green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightGreen].

§Example
println!("{}", value.bright_green());
§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightYellow].

§Example
println!("{}", value.bright_yellow());
§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlue].

§Example
println!("{}", value.bright_blue());
§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.bright_magenta());
§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightCyan].

§Example
println!("{}", value.bright_cyan());
§

fn bright_white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightWhite].

§Example
println!("{}", value.bright_white());
§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and on_green(), which have the same functionality but are pithier.

§Example

Set background color to red using fg():

use yansi::{Paint, Color};

painted.bg(Color::Red);

Set background color to red using on_red().

use yansi::Paint;

painted.on_red();
§

fn on_primary(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Primary].

§Example
println!("{}", value.on_primary());
§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Fixed].

§Example
println!("{}", value.on_fixed(color));
§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Black].

§Example
println!("{}", value.on_black());
§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Red].

§Example
println!("{}", value.on_red());
§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Green].

§Example
println!("{}", value.on_green());
§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Yellow].

§Example
println!("{}", value.on_yellow());
§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Blue].

§Example
println!("{}", value.on_blue());
§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Magenta].

§Example
println!("{}", value.on_magenta());
§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Cyan].

§Example
println!("{}", value.on_cyan());
§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: White].

§Example
println!("{}", value.on_white());
§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlack].

§Example
println!("{}", value.on_bright_black());
§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightRed].

§Example
println!("{}", value.on_bright_red());
§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightGreen].

§Example
println!("{}", value.on_bright_green());
§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlue].

§Example
println!("{}", value.on_bright_blue());
§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightCyan].

§Example
println!("{}", value.on_bright_cyan());
§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightWhite].

§Example
println!("{}", value.on_bright_white());
§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling [Attribute] value.

This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality but are pithier.

§Example

Make text bold using attr():

use yansi::{Paint, Attribute};

painted.attr(Attribute::Bold);

Make text bold using using bold().

use yansi::Paint;

painted.bold();
§

fn bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Bold].

§Example
println!("{}", value.bold());
§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Dim].

§Example
println!("{}", value.dim());
§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Italic].

§Example
println!("{}", value.italic());
§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Underline].

§Example
println!("{}", value.underline());

Returns self with the attr() set to [Attribute :: Blink].

§Example
println!("{}", value.blink());

Returns self with the attr() set to [Attribute :: RapidBlink].

§Example
println!("{}", value.rapid_blink());
§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Invert].

§Example
println!("{}", value.invert());
§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Conceal].

§Example
println!("{}", value.conceal());
§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Strike].

§Example
println!("{}", value.strike());
§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi [Quirk] value.

This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are pithier.

§Example

Enable wrapping using .quirk():

use yansi::{Paint, Quirk};

painted.quirk(Quirk::Wrap);

Enable wrapping using wrap().

use yansi::Paint;

painted.wrap();
§

fn mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Mask].

§Example
println!("{}", value.mask());
§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Wrap].

§Example
println!("{}", value.wrap());
§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Linger].

§Example
println!("{}", value.linger());
§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1:

renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

Returns self with the quirk() set to [Quirk :: Clear].

§Example
println!("{}", value.clear());
§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Resetting].

§Example
println!("{}", value.resetting());
§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Bright].

§Example
println!("{}", value.bright());
§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: OnBright].

§Example
println!("{}", value.on_bright());
§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

See the crate level docs for more details.

§Example

Enable styling painted only when both stdout and stderr are TTYs:

use yansi::{Paint, Condition};

painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
§

fn new(self) -> Painted<Self>
where Self: Sized,

Create a new [Painted] with a default [Style]. Read more
§

fn paint<S>(&self, style: S) -> Painted<&Self>
where S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
§

impl<Borrowed> SampleBorrow<Borrowed> for Borrowed
where Borrowed: SampleUniform,

§

fn borrow(&self) -> &Borrowed

Immutably borrows from an owned value. See Borrow::borrow
§

impl<'p, T> Seq<'p, T> for T
where T: Clone,

§

type Item<'a> = &'a T where T: 'a

The item yielded by the iterator.
§

type Iter<'a> = Once<&'a T> where T: 'a

An iterator over the items within this container, by reference.
§

fn seq_iter(&self) -> <T as Seq<'p, T>>::Iter<'_>

Iterate over the elements of the container.
§

fn contains(&self, val: &T) -> bool
where T: PartialEq,

Check whether an item is contained within this sequence.
§

fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>
where 'p: 'b,

Convert an item of the sequence into a [MaybeRef].
§

impl<T, S> SpanWrap<S> for T
where S: WrappingSpan<T>,

§

fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned

Invokes [WrappingSpan::make_wrapped] to wrap an AST node in a span.
§

impl<T> StdoutFmt for T
where T: Display,

§

fn fg<C>(self, color: C) -> Foreground<Self>
where C: Into<Option<Color>>,

Give this value the specified foreground colour, when color is enabled for stdout.
§

fn bg<C>(self, color: C) -> Background<Self>
where C: Into<Option<Color>>,

Give this value the specified background colour, when color is enabled for stdout.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> AnyBitPattern for T
where T: Pod,

§

impl<T> Attachment for T
where T: OpaqueAttachment + Display + Debug,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> NoUninit for T
where T: Pod,

Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

§

impl<T> OpaqueAttachment for T
where T: Send + Sync + 'static,

§

impl<T> OrderedSeq<'_, T> for T
where T: Clone,

Source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,