IVec4

Struct IVec4 

Source
#[repr(C)]
pub struct IVec4 { pub x: i32, pub y: i32, pub z: i32, pub w: i32, }
Expand description

A 4-dimensional vector.

Fieldsยง

ยงx: i32ยงy: i32ยงz: i32ยงw: i32

Implementationsยง

Sourceยง

impl IVec4

Source

pub const ZERO: IVec4

All zeroes.

Source

pub const ONE: IVec4

All ones.

Source

pub const NEG_ONE: IVec4

All negative ones.

Source

pub const MIN: IVec4

All i32::MIN.

Source

pub const MAX: IVec4

All i32::MAX.

Source

pub const X: IVec4

A unit vector pointing along the positive X axis.

Source

pub const Y: IVec4

A unit vector pointing along the positive Y axis.

Source

pub const Z: IVec4

A unit vector pointing along the positive Z axis.

Source

pub const W: IVec4

A unit vector pointing along the positive W axis.

Source

pub const NEG_X: IVec4

A unit vector pointing along the negative X axis.

Source

pub const NEG_Y: IVec4

A unit vector pointing along the negative Y axis.

Source

pub const NEG_Z: IVec4

A unit vector pointing along the negative Z axis.

Source

pub const NEG_W: IVec4

A unit vector pointing along the negative W axis.

Source

pub const AXES: [IVec4; 4]

The unit axes.

Source

pub const fn new(x: i32, y: i32, z: i32, w: i32) -> IVec4

Creates a new vector.

Source

pub const fn splat(v: i32) -> IVec4

Creates a vector with all elements set to v.

Source

pub fn select(mask: BVec4, if_true: IVec4, if_false: IVec4) -> IVec4

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: [i32; 4]) -> IVec4

Creates a new vector from an array.

Source

pub const fn to_array(&self) -> [i32; 4]

[x, y, z, w]

Source

pub const fn from_slice(slice: &[i32]) -> IVec4

Creates a vector from the first 4 values in slice.

ยงPanics

Panics if slice is less than 4 elements long.

Source

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

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

ยงPanics

Panics if slice is less than 4 elements long.

Source

pub fn truncate(self) -> IVec3

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

Truncation to IVec3 may also be performed by using self.xyz().

Source

pub fn dot(self, rhs: IVec4) -> i32

Computes the dot product of self and rhs.

Source

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

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

Source

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

Returns a vector containing the minimum values for each element of self and rhs.

In other words this computes [self.x.min(rhs.x), self.y.min(rhs.y), ..].

Source

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

Returns a vector containing the maximum values for each element of self and rhs.

In other words this computes [self.x.max(rhs.x), self.y.max(rhs.y), ..].

Source

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

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

Returns the horizontal minimum of self.

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

Source

pub fn max_element(self) -> i32

Returns the horizontal maximum of self.

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

Source

pub fn cmpeq(self, rhs: IVec4) -> BVec4

Returns a vector mask containing the result of a == comparison for each element of self and rhs.

In other words, this computes [self.x == rhs.x, self.y == rhs.y, ..] for all elements.

Source

pub fn cmpne(self, rhs: IVec4) -> BVec4

Returns a vector mask containing the result of a != comparison for each element of self and rhs.

In other words this computes [self.x != rhs.x, self.y != rhs.y, ..] for all elements.

Source

pub fn cmpge(self, rhs: IVec4) -> BVec4

Returns a vector mask containing the result of a >= comparison for each element of self and rhs.

In other words this computes [self.x >= rhs.x, self.y >= rhs.y, ..] for all elements.

Source

pub fn cmpgt(self, rhs: IVec4) -> BVec4

Returns a vector mask containing the result of a > comparison for each element of self and rhs.

In other words this computes [self.x > rhs.x, self.y > rhs.y, ..] for all elements.

Source

pub fn cmple(self, rhs: IVec4) -> BVec4

Returns a vector mask containing the result of a <= comparison for each element of self and rhs.

In other words this computes [self.x <= rhs.x, self.y <= rhs.y, ..] for all elements.

Source

pub fn cmplt(self, rhs: IVec4) -> BVec4

Returns a vector mask containing the result of a < comparison for each element of self and rhs.

In other words this computes [self.x < rhs.x, self.y < rhs.y, ..] for all elements.

Source

pub fn abs(self) -> IVec4

Returns a vector containing the absolute value of each element of self.

Source

pub fn signum(self) -> IVec4

Returns a vector with elements representing the sign of self.

  • 0 if the number is zero
  • 1 if the number is positive
  • -1 if the number is negative
Source

pub fn is_negative_bitmask(self) -> u32

Returns a bitmask with the lowest 4 bits set to the sign bits from the elements of self.

A negative element results in a 1 bit and a positive element in a 0 bit. Element x goes into the first lowest bit, element y into the second, etc.

Source

pub fn length_squared(self) -> i32

Computes the squared length of self.

Source

pub fn distance_squared(self, rhs: IVec4) -> i32

Compute the squared euclidean distance between two points in space.

Source

pub fn div_euclid(self, rhs: IVec4) -> IVec4

Returns the element-wise quotient of [Euclidean division] of self by rhs.

ยงPanics

This function will panic if any rhs element is 0 or the division results in overflow.

Source

pub fn rem_euclid(self, rhs: IVec4) -> IVec4

Returns the element-wise remainder of Euclidean division of self by rhs.

ยงPanics

This function will panic if any rhs element is 0 or the division results in overflow.

Source

pub fn as_vec4(&self) -> Vec4

Casts all elements of self to f32.

Source

pub fn as_dvec4(&self) -> DVec4

Casts all elements of self to f64.

Source

pub fn as_uvec4(&self) -> UVec4

Casts all elements of self to u32.

Source

pub fn as_i64vec4(&self) -> I64Vec4

Casts all elements of self to i64.

Source

pub fn as_u64vec4(&self) -> U64Vec4

Casts all elements of self to u64.

Source

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

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: IVec4) -> IVec4

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: IVec4) -> IVec4

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: IVec4) -> IVec4

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: IVec4) -> IVec4

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: IVec4) -> IVec4

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: IVec4) -> IVec4

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: IVec4) -> IVec4

Returns a vector containing the saturating division of self and rhs.

In other words this computes [self.x.saturating_div(rhs.x), self.y.saturating_div(rhs.y), ..].

Trait Implementationsยง

Sourceยง

impl Add<i32> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the + operator.
Sourceยง

fn add(self, rhs: i32) -> IVec4

Performs the + operation. Read more
Sourceยง

impl Add for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the + operator.
Sourceยง

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

Performs the + operation. Read more
Sourceยง

impl AddAssign<i32> for IVec4

Sourceยง

fn add_assign(&mut self, rhs: i32)

Performs the += operation. Read more
Sourceยง

impl AddAssign for IVec4

Sourceยง

fn add_assign(&mut self, rhs: IVec4)

Performs the += operation. Read more
Sourceยง

impl AsMut<[i32; 4]> for IVec4

Available on non-target_arch=spirv only.
Sourceยง

fn as_mut(&mut self) -> &mut [i32; 4]

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

impl AsRef<[i32; 4]> for IVec4

Available on non-target_arch=spirv only.
Sourceยง

fn as_ref(&self) -> &[i32; 4]

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

impl BitAnd<i32> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the & operator.
Sourceยง

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

Performs the & operation. Read more
Sourceยง

impl BitAnd for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the & operator.
Sourceยง

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

Performs the & operation. Read more
Sourceยง

impl BitOr<i32> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the | operator.
Sourceยง

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

Performs the | operation. Read more
Sourceยง

impl BitOr for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the | operator.
Sourceยง

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

Performs the | operation. Read more
Sourceยง

impl BitXor<i32> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the ^ operator.
Sourceยง

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

Performs the ^ operation. Read more
Sourceยง

impl BitXor for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the ^ operator.
Sourceยง

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

Performs the ^ operation. Read more
Sourceยง

impl Clone for IVec4

Sourceยง

fn clone(&self) -> IVec4

Returns a duplicate of the value. Read more
1.0.0ยง

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

Performs copy-assignment from source. Read more
Sourceยง

impl Debug for IVec4

Available on non-target_arch=spirv only.
Sourceยง

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

Formats the value using the given formatter. Read more
Sourceยง

impl Default for IVec4

Sourceยง

fn default() -> IVec4

Returns the โ€œdefault valueโ€ for a type. Read more
Sourceยง

impl Display for IVec4

Available on non-target_arch=spirv only.
Sourceยง

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

Formats the value using the given formatter. Read more
Sourceยง

impl Div<i32> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the / operator.
Sourceยง

fn div(self, rhs: i32) -> IVec4

Performs the / operation. Read more
Sourceยง

impl Div for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the / operator.
Sourceยง

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

Performs the / operation. Read more
Sourceยง

impl DivAssign<i32> for IVec4

Sourceยง

fn div_assign(&mut self, rhs: i32)

Performs the /= operation. Read more
Sourceยง

impl DivAssign for IVec4

Sourceยง

fn div_assign(&mut self, rhs: IVec4)

Performs the /= operation. Read more
Sourceยง

impl From<[i32; 4]> for IVec4

Sourceยง

fn from(a: [i32; 4]) -> IVec4

Converts to this type from the input type.
Sourceยง

impl From<(IVec2, IVec2)> for IVec4

Sourceยง

fn from(_: (IVec2, IVec2)) -> IVec4

Converts to this type from the input type.
Sourceยง

impl From<(IVec2, i32, i32)> for IVec4

Sourceยง

fn from(_: (IVec2, i32, i32)) -> IVec4

Converts to this type from the input type.
Sourceยง

impl From<(IVec3, i32)> for IVec4

Sourceยง

fn from(_: (IVec3, i32)) -> IVec4

Converts to this type from the input type.
Sourceยง

impl From<(i32, IVec3)> for IVec4

Sourceยง

fn from(_: (i32, IVec3)) -> IVec4

Converts to this type from the input type.
Sourceยง

impl From<(i32, i32, i32, i32)> for IVec4

Sourceยง

fn from(t: (i32, i32, i32, i32)) -> IVec4

Converts to this type from the input type.
Sourceยง

impl From<IVec4> for DVec4

Sourceยง

fn from(v: IVec4) -> DVec4

Converts to this type from the input type.
Sourceยง

impl From<IVec4> for I64Vec4

Sourceยง

fn from(v: IVec4) -> I64Vec4

Converts to this type from the input type.
Sourceยง

impl Hash for IVec4

Sourceยง

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

Feeds this value into the given Hasher. Read more
1.3.0ยง

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 IVec4

Sourceยง

type Output = i32

The returned type after indexing.
Sourceยง

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

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

impl IndexMut<usize> for IVec4

Sourceยง

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

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

impl Mul<i32> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the * operator.
Sourceยง

fn mul(self, rhs: i32) -> IVec4

Performs the * operation. Read more
Sourceยง

impl Mul for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the * operator.
Sourceยง

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

Performs the * operation. Read more
Sourceยง

impl MulAssign<i32> for IVec4

Sourceยง

fn mul_assign(&mut self, rhs: i32)

Performs the *= operation. Read more
Sourceยง

impl MulAssign for IVec4

Sourceยง

fn mul_assign(&mut self, rhs: IVec4)

Performs the *= operation. Read more
Sourceยง

impl Neg for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the - operator.
Sourceยง

fn neg(self) -> IVec4

Performs the unary - operation. Read more
Sourceยง

impl Not for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the ! operator.
Sourceยง

fn not(self) -> <IVec4 as Not>::Output

Performs the unary ! operation. Read more
Sourceยง

impl PartialEq for IVec4

Sourceยง

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

Tests for self and other values to be equal, and is used by ==.
1.0.0ยง

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 IVec4> for IVec4

Sourceยง

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

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

impl Product for IVec4

Sourceยง

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

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

impl Rem<i32> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the % operator.
Sourceยง

fn rem(self, rhs: i32) -> IVec4

Performs the % operation. Read more
Sourceยง

impl Rem for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the % operator.
Sourceยง

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

Performs the % operation. Read more
Sourceยง

impl RemAssign<i32> for IVec4

Sourceยง

fn rem_assign(&mut self, rhs: i32)

Performs the %= operation. Read more
Sourceยง

impl RemAssign for IVec4

Sourceยง

fn rem_assign(&mut self, rhs: IVec4)

Performs the %= operation. Read more
Sourceยง

impl Shl<IVec4> for I64Vec4

Sourceยง

type Output = I64Vec4

The resulting type after applying the << operator.
Sourceยง

fn shl(self, rhs: IVec4) -> <I64Vec4 as Shl<IVec4>>::Output

Performs the << operation. Read more
Sourceยง

impl Shl<IVec4> for U64Vec4

Sourceยง

type Output = U64Vec4

The resulting type after applying the << operator.
Sourceยง

fn shl(self, rhs: IVec4) -> <U64Vec4 as Shl<IVec4>>::Output

Performs the << operation. Read more
Sourceยง

impl Shl<IVec4> for UVec4

Sourceยง

type Output = UVec4

The resulting type after applying the << operator.
Sourceยง

fn shl(self, rhs: IVec4) -> <UVec4 as Shl<IVec4>>::Output

Performs the << operation. Read more
Sourceยง

impl Shl<UVec4> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the << operator.
Sourceยง

fn shl(self, rhs: UVec4) -> <IVec4 as Shl<UVec4>>::Output

Performs the << operation. Read more
Sourceยง

impl Shl<i16> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the << operator.
Sourceยง

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

Performs the << operation. Read more
Sourceยง

impl Shl<i32> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the << operator.
Sourceยง

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

Performs the << operation. Read more
Sourceยง

impl Shl<i64> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the << operator.
Sourceยง

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

Performs the << operation. Read more
Sourceยง

impl Shl<i8> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the << operator.
Sourceยง

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

Performs the << operation. Read more
Sourceยง

impl Shl<u16> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the << operator.
Sourceยง

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

Performs the << operation. Read more
Sourceยง

impl Shl<u32> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the << operator.
Sourceยง

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

Performs the << operation. Read more
Sourceยง

impl Shl<u64> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the << operator.
Sourceยง

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

Performs the << operation. Read more
Sourceยง

impl Shl<u8> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the << operator.
Sourceยง

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

Performs the << operation. Read more
Sourceยง

impl Shl for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the << operator.
Sourceยง

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

Performs the << operation. Read more
Sourceยง

impl Shr<IVec4> for I64Vec4

Sourceยง

type Output = I64Vec4

The resulting type after applying the >> operator.
Sourceยง

fn shr(self, rhs: IVec4) -> <I64Vec4 as Shr<IVec4>>::Output

Performs the >> operation. Read more
Sourceยง

impl Shr<IVec4> for U64Vec4

Sourceยง

type Output = U64Vec4

The resulting type after applying the >> operator.
Sourceยง

fn shr(self, rhs: IVec4) -> <U64Vec4 as Shr<IVec4>>::Output

Performs the >> operation. Read more
Sourceยง

impl Shr<IVec4> for UVec4

Sourceยง

type Output = UVec4

The resulting type after applying the >> operator.
Sourceยง

fn shr(self, rhs: IVec4) -> <UVec4 as Shr<IVec4>>::Output

Performs the >> operation. Read more
Sourceยง

impl Shr<UVec4> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the >> operator.
Sourceยง

fn shr(self, rhs: UVec4) -> <IVec4 as Shr<UVec4>>::Output

Performs the >> operation. Read more
Sourceยง

impl Shr<i16> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the >> operator.
Sourceยง

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

Performs the >> operation. Read more
Sourceยง

impl Shr<i32> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the >> operator.
Sourceยง

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

Performs the >> operation. Read more
Sourceยง

impl Shr<i64> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the >> operator.
Sourceยง

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

Performs the >> operation. Read more
Sourceยง

impl Shr<i8> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the >> operator.
Sourceยง

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

Performs the >> operation. Read more
Sourceยง

impl Shr<u16> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the >> operator.
Sourceยง

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

Performs the >> operation. Read more
Sourceยง

impl Shr<u32> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the >> operator.
Sourceยง

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

Performs the >> operation. Read more
Sourceยง

impl Shr<u64> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the >> operator.
Sourceยง

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

Performs the >> operation. Read more
Sourceยง

impl Shr<u8> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the >> operator.
Sourceยง

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

Performs the >> operation. Read more
Sourceยง

impl Shr for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the >> operator.
Sourceยง

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

Performs the >> operation. Read more
Sourceยง

impl Sub<i32> for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the - operator.
Sourceยง

fn sub(self, rhs: i32) -> IVec4

Performs the - operation. Read more
Sourceยง

impl Sub for IVec4

Sourceยง

type Output = IVec4

The resulting type after applying the - operator.
Sourceยง

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

Performs the - operation. Read more
Sourceยง

impl SubAssign<i32> for IVec4

Sourceยง

fn sub_assign(&mut self, rhs: i32)

Performs the -= operation. Read more
Sourceยง

impl SubAssign for IVec4

Sourceยง

fn sub_assign(&mut self, rhs: IVec4)

Performs the -= operation. Read more
Sourceยง

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

Sourceยง

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

Takes an iterator and generates Self from the elements by โ€œsumming upโ€ the items.
Sourceยง

impl Sum for IVec4

Sourceยง

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

Takes an iterator and generates Self from the elements by โ€œsumming upโ€ the items.
Sourceยง

impl TryFrom<I64Vec4> for IVec4

Sourceยง

type Error = TryFromIntError

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

fn try_from(v: I64Vec4) -> Result<IVec4, <IVec4 as TryFrom<I64Vec4>>::Error>

Performs the conversion.
Sourceยง

impl TryFrom<IVec4> for UVec4

Sourceยง

type Error = TryFromIntError

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

fn try_from(v: IVec4) -> Result<UVec4, <UVec4 as TryFrom<IVec4>>::Error>

Performs the conversion.
Sourceยง

impl TryFrom<U64Vec4> for IVec4

Sourceยง

type Error = TryFromIntError

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

fn try_from(v: U64Vec4) -> Result<IVec4, <IVec4 as TryFrom<U64Vec4>>::Error>

Performs the conversion.
Sourceยง

impl TryFrom<UVec4> for IVec4

Sourceยง

type Error = TryFromIntError

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

fn try_from(v: UVec4) -> Result<IVec4, <IVec4 as TryFrom<UVec4>>::Error>

Performs the conversion.
Sourceยง

impl Vec4Swizzles for IVec4

Sourceยง

type Vec2 = IVec2

Sourceยง

type Vec3 = IVec3

Sourceยง

fn xx(self) -> IVec2

Sourceยง

fn xy(self) -> IVec2

Sourceยง

fn xz(self) -> IVec2

Sourceยง

fn xw(self) -> IVec2

Sourceยง

fn yx(self) -> IVec2

Sourceยง

fn yy(self) -> IVec2

Sourceยง

fn yz(self) -> IVec2

Sourceยง

fn yw(self) -> IVec2

Sourceยง

fn zx(self) -> IVec2

Sourceยง

fn zy(self) -> IVec2

Sourceยง

fn zz(self) -> IVec2

Sourceยง

fn zw(self) -> IVec2

Sourceยง

fn wx(self) -> IVec2

Sourceยง

fn wy(self) -> IVec2

Sourceยง

fn wz(self) -> IVec2

Sourceยง

fn ww(self) -> IVec2

Sourceยง

fn xxx(self) -> IVec3

Sourceยง

fn xxy(self) -> IVec3

Sourceยง

fn xxz(self) -> IVec3

Sourceยง

fn xxw(self) -> IVec3

Sourceยง

fn xyx(self) -> IVec3

Sourceยง

fn xyy(self) -> IVec3

Sourceยง

fn xyz(self) -> IVec3

Sourceยง

fn xyw(self) -> IVec3

Sourceยง

fn xzx(self) -> IVec3

Sourceยง

fn xzy(self) -> IVec3

Sourceยง

fn xzz(self) -> IVec3

Sourceยง

fn xzw(self) -> IVec3

Sourceยง

fn xwx(self) -> IVec3

Sourceยง

fn xwy(self) -> IVec3

Sourceยง

fn xwz(self) -> IVec3

Sourceยง

fn xww(self) -> IVec3

Sourceยง

fn yxx(self) -> IVec3

Sourceยง

fn yxy(self) -> IVec3

Sourceยง

fn yxz(self) -> IVec3

Sourceยง

fn yxw(self) -> IVec3

Sourceยง

fn yyx(self) -> IVec3

Sourceยง

fn yyy(self) -> IVec3

Sourceยง

fn yyz(self) -> IVec3

Sourceยง

fn yyw(self) -> IVec3

Sourceยง

fn yzx(self) -> IVec3

Sourceยง

fn yzy(self) -> IVec3

Sourceยง

fn yzz(self) -> IVec3

Sourceยง

fn yzw(self) -> IVec3

Sourceยง

fn ywx(self) -> IVec3

Sourceยง

fn ywy(self) -> IVec3

Sourceยง

fn ywz(self) -> IVec3

Sourceยง

fn yww(self) -> IVec3

Sourceยง

fn zxx(self) -> IVec3

Sourceยง

fn zxy(self) -> IVec3

Sourceยง

fn zxz(self) -> IVec3

Sourceยง

fn zxw(self) -> IVec3

Sourceยง

fn zyx(self) -> IVec3

Sourceยง

fn zyy(self) -> IVec3

Sourceยง

fn zyz(self) -> IVec3

Sourceยง

fn zyw(self) -> IVec3

Sourceยง

fn zzx(self) -> IVec3

Sourceยง

fn zzy(self) -> IVec3

Sourceยง

fn zzz(self) -> IVec3

Sourceยง

fn zzw(self) -> IVec3

Sourceยง

fn zwx(self) -> IVec3

Sourceยง

fn zwy(self) -> IVec3

Sourceยง

fn zwz(self) -> IVec3

Sourceยง

fn zww(self) -> IVec3

Sourceยง

fn wxx(self) -> IVec3

Sourceยง

fn wxy(self) -> IVec3

Sourceยง

fn wxz(self) -> IVec3

Sourceยง

fn wxw(self) -> IVec3

Sourceยง

fn wyx(self) -> IVec3

Sourceยง

fn wyy(self) -> IVec3

Sourceยง

fn wyz(self) -> IVec3

Sourceยง

fn wyw(self) -> IVec3

Sourceยง

fn wzx(self) -> IVec3

Sourceยง

fn wzy(self) -> IVec3

Sourceยง

fn wzz(self) -> IVec3

Sourceยง

fn wzw(self) -> IVec3

Sourceยง

fn wwx(self) -> IVec3

Sourceยง

fn wwy(self) -> IVec3

Sourceยง

fn wwz(self) -> IVec3

Sourceยง

fn www(self) -> IVec3

Sourceยง

fn xxxx(self) -> IVec4

Sourceยง

fn xxxy(self) -> IVec4

Sourceยง

fn xxxz(self) -> IVec4

Sourceยง

fn xxxw(self) -> IVec4

Sourceยง

fn xxyx(self) -> IVec4

Sourceยง

fn xxyy(self) -> IVec4

Sourceยง

fn xxyz(self) -> IVec4

Sourceยง

fn xxyw(self) -> IVec4

Sourceยง

fn xxzx(self) -> IVec4

Sourceยง

fn xxzy(self) -> IVec4

Sourceยง

fn xxzz(self) -> IVec4

Sourceยง

fn xxzw(self) -> IVec4

Sourceยง

fn xxwx(self) -> IVec4

Sourceยง

fn xxwy(self) -> IVec4

Sourceยง

fn xxwz(self) -> IVec4

Sourceยง

fn xxww(self) -> IVec4

Sourceยง

fn xyxx(self) -> IVec4

Sourceยง

fn xyxy(self) -> IVec4

Sourceยง

fn xyxz(self) -> IVec4

Sourceยง

fn xyxw(self) -> IVec4

Sourceยง

fn xyyx(self) -> IVec4

Sourceยง

fn xyyy(self) -> IVec4

Sourceยง

fn xyyz(self) -> IVec4

Sourceยง

fn xyyw(self) -> IVec4

Sourceยง

fn xyzx(self) -> IVec4

Sourceยง

fn xyzy(self) -> IVec4

Sourceยง

fn xyzz(self) -> IVec4

Sourceยง

fn xyzw(self) -> IVec4

Sourceยง

fn xywx(self) -> IVec4

Sourceยง

fn xywy(self) -> IVec4

Sourceยง

fn xywz(self) -> IVec4

Sourceยง

fn xyww(self) -> IVec4

Sourceยง

fn xzxx(self) -> IVec4

Sourceยง

fn xzxy(self) -> IVec4

Sourceยง

fn xzxz(self) -> IVec4

Sourceยง

fn xzxw(self) -> IVec4

Sourceยง

fn xzyx(self) -> IVec4

Sourceยง

fn xzyy(self) -> IVec4

Sourceยง

fn xzyz(self) -> IVec4

Sourceยง

fn xzyw(self) -> IVec4

Sourceยง

fn xzzx(self) -> IVec4

Sourceยง

fn xzzy(self) -> IVec4

Sourceยง

fn xzzz(self) -> IVec4

Sourceยง

fn xzzw(self) -> IVec4

Sourceยง

fn xzwx(self) -> IVec4

Sourceยง

fn xzwy(self) -> IVec4

Sourceยง

fn xzwz(self) -> IVec4

Sourceยง

fn xzww(self) -> IVec4

Sourceยง

fn xwxx(self) -> IVec4

Sourceยง

fn xwxy(self) -> IVec4

Sourceยง

fn xwxz(self) -> IVec4

Sourceยง

fn xwxw(self) -> IVec4

Sourceยง

fn xwyx(self) -> IVec4

Sourceยง

fn xwyy(self) -> IVec4

Sourceยง

fn xwyz(self) -> IVec4

Sourceยง

fn xwyw(self) -> IVec4

Sourceยง

fn xwzx(self) -> IVec4

Sourceยง

fn xwzy(self) -> IVec4

Sourceยง

fn xwzz(self) -> IVec4

Sourceยง

fn xwzw(self) -> IVec4

Sourceยง

fn xwwx(self) -> IVec4

Sourceยง

fn xwwy(self) -> IVec4

Sourceยง

fn xwwz(self) -> IVec4

Sourceยง

fn xwww(self) -> IVec4

Sourceยง

fn yxxx(self) -> IVec4

Sourceยง

fn yxxy(self) -> IVec4

Sourceยง

fn yxxz(self) -> IVec4

Sourceยง

fn yxxw(self) -> IVec4

Sourceยง

fn yxyx(self) -> IVec4

Sourceยง

fn yxyy(self) -> IVec4

Sourceยง

fn yxyz(self) -> IVec4

Sourceยง

fn yxyw(self) -> IVec4

Sourceยง

fn yxzx(self) -> IVec4

Sourceยง

fn yxzy(self) -> IVec4

Sourceยง

fn yxzz(self) -> IVec4

Sourceยง

fn yxzw(self) -> IVec4

Sourceยง

fn yxwx(self) -> IVec4

Sourceยง

fn yxwy(self) -> IVec4

Sourceยง

fn yxwz(self) -> IVec4

Sourceยง

fn yxww(self) -> IVec4

Sourceยง

fn yyxx(self) -> IVec4

Sourceยง

fn yyxy(self) -> IVec4

Sourceยง

fn yyxz(self) -> IVec4

Sourceยง

fn yyxw(self) -> IVec4

Sourceยง

fn yyyx(self) -> IVec4

Sourceยง

fn yyyy(self) -> IVec4

Sourceยง

fn yyyz(self) -> IVec4

Sourceยง

fn yyyw(self) -> IVec4

Sourceยง

fn yyzx(self) -> IVec4

Sourceยง

fn yyzy(self) -> IVec4

Sourceยง

fn yyzz(self) -> IVec4

Sourceยง

fn yyzw(self) -> IVec4

Sourceยง

fn yywx(self) -> IVec4

Sourceยง

fn yywy(self) -> IVec4

Sourceยง

fn yywz(self) -> IVec4

Sourceยง

fn yyww(self) -> IVec4

Sourceยง

fn yzxx(self) -> IVec4

Sourceยง

fn yzxy(self) -> IVec4

Sourceยง

fn yzxz(self) -> IVec4

Sourceยง

fn yzxw(self) -> IVec4

Sourceยง

fn yzyx(self) -> IVec4

Sourceยง

fn yzyy(self) -> IVec4

Sourceยง

fn yzyz(self) -> IVec4

Sourceยง

fn yzyw(self) -> IVec4

Sourceยง

fn yzzx(self) -> IVec4

Sourceยง

fn yzzy(self) -> IVec4

Sourceยง

fn yzzz(self) -> IVec4

Sourceยง

fn yzzw(self) -> IVec4

Sourceยง

fn yzwx(self) -> IVec4

Sourceยง

fn yzwy(self) -> IVec4

Sourceยง

fn yzwz(self) -> IVec4

Sourceยง

fn yzww(self) -> IVec4

Sourceยง

fn ywxx(self) -> IVec4

Sourceยง

fn ywxy(self) -> IVec4

Sourceยง

fn ywxz(self) -> IVec4

Sourceยง

fn ywxw(self) -> IVec4

Sourceยง

fn ywyx(self) -> IVec4

Sourceยง

fn ywyy(self) -> IVec4

Sourceยง

fn ywyz(self) -> IVec4

Sourceยง

fn ywyw(self) -> IVec4

Sourceยง

fn ywzx(self) -> IVec4

Sourceยง

fn ywzy(self) -> IVec4

Sourceยง

fn ywzz(self) -> IVec4

Sourceยง

fn ywzw(self) -> IVec4

Sourceยง

fn ywwx(self) -> IVec4

Sourceยง

fn ywwy(self) -> IVec4

Sourceยง

fn ywwz(self) -> IVec4

Sourceยง

fn ywww(self) -> IVec4

Sourceยง

fn zxxx(self) -> IVec4

Sourceยง

fn zxxy(self) -> IVec4

Sourceยง

fn zxxz(self) -> IVec4

Sourceยง

fn zxxw(self) -> IVec4

Sourceยง

fn zxyx(self) -> IVec4

Sourceยง

fn zxyy(self) -> IVec4

Sourceยง

fn zxyz(self) -> IVec4

Sourceยง

fn zxyw(self) -> IVec4

Sourceยง

fn zxzx(self) -> IVec4

Sourceยง

fn zxzy(self) -> IVec4

Sourceยง

fn zxzz(self) -> IVec4

Sourceยง

fn zxzw(self) -> IVec4

Sourceยง

fn zxwx(self) -> IVec4

Sourceยง

fn zxwy(self) -> IVec4

Sourceยง

fn zxwz(self) -> IVec4

Sourceยง

fn zxww(self) -> IVec4

Sourceยง

fn zyxx(self) -> IVec4

Sourceยง

fn zyxy(self) -> IVec4

Sourceยง

fn zyxz(self) -> IVec4

Sourceยง

fn zyxw(self) -> IVec4

Sourceยง

fn zyyx(self) -> IVec4

Sourceยง

fn zyyy(self) -> IVec4

Sourceยง

fn zyyz(self) -> IVec4

Sourceยง

fn zyyw(self) -> IVec4

Sourceยง

fn zyzx(self) -> IVec4

Sourceยง

fn zyzy(self) -> IVec4

Sourceยง

fn zyzz(self) -> IVec4

Sourceยง

fn zyzw(self) -> IVec4

Sourceยง

fn zywx(self) -> IVec4

Sourceยง

fn zywy(self) -> IVec4

Sourceยง

fn zywz(self) -> IVec4

Sourceยง

fn zyww(self) -> IVec4

Sourceยง

fn zzxx(self) -> IVec4

Sourceยง

fn zzxy(self) -> IVec4

Sourceยง

fn zzxz(self) -> IVec4

Sourceยง

fn zzxw(self) -> IVec4

Sourceยง

fn zzyx(self) -> IVec4

Sourceยง

fn zzyy(self) -> IVec4

Sourceยง

fn zzyz(self) -> IVec4

Sourceยง

fn zzyw(self) -> IVec4

Sourceยง

fn zzzx(self) -> IVec4

Sourceยง

fn zzzy(self) -> IVec4

Sourceยง

fn zzzz(self) -> IVec4

Sourceยง

fn zzzw(self) -> IVec4

Sourceยง

fn zzwx(self) -> IVec4

Sourceยง

fn zzwy(self) -> IVec4

Sourceยง

fn zzwz(self) -> IVec4

Sourceยง

fn zzww(self) -> IVec4

Sourceยง

fn zwxx(self) -> IVec4

Sourceยง

fn zwxy(self) -> IVec4

Sourceยง

fn zwxz(self) -> IVec4

Sourceยง

fn zwxw(self) -> IVec4

Sourceยง

fn zwyx(self) -> IVec4

Sourceยง

fn zwyy(self) -> IVec4

Sourceยง

fn zwyz(self) -> IVec4

Sourceยง

fn zwyw(self) -> IVec4

Sourceยง

fn zwzx(self) -> IVec4

Sourceยง

fn zwzy(self) -> IVec4

Sourceยง

fn zwzz(self) -> IVec4

Sourceยง

fn zwzw(self) -> IVec4

Sourceยง

fn zwwx(self) -> IVec4

Sourceยง

fn zwwy(self) -> IVec4

Sourceยง

fn zwwz(self) -> IVec4

Sourceยง

fn zwww(self) -> IVec4

Sourceยง

fn wxxx(self) -> IVec4

Sourceยง

fn wxxy(self) -> IVec4

Sourceยง

fn wxxz(self) -> IVec4

Sourceยง

fn wxxw(self) -> IVec4

Sourceยง

fn wxyx(self) -> IVec4

Sourceยง

fn wxyy(self) -> IVec4

Sourceยง

fn wxyz(self) -> IVec4

Sourceยง

fn wxyw(self) -> IVec4

Sourceยง

fn wxzx(self) -> IVec4

Sourceยง

fn wxzy(self) -> IVec4

Sourceยง

fn wxzz(self) -> IVec4

Sourceยง

fn wxzw(self) -> IVec4

Sourceยง

fn wxwx(self) -> IVec4

Sourceยง

fn wxwy(self) -> IVec4

Sourceยง

fn wxwz(self) -> IVec4

Sourceยง

fn wxww(self) -> IVec4

Sourceยง

fn wyxx(self) -> IVec4

Sourceยง

fn wyxy(self) -> IVec4

Sourceยง

fn wyxz(self) -> IVec4

Sourceยง

fn wyxw(self) -> IVec4

Sourceยง

fn wyyx(self) -> IVec4

Sourceยง

fn wyyy(self) -> IVec4

Sourceยง

fn wyyz(self) -> IVec4

Sourceยง

fn wyyw(self) -> IVec4

Sourceยง

fn wyzx(self) -> IVec4

Sourceยง

fn wyzy(self) -> IVec4

Sourceยง

fn wyzz(self) -> IVec4

Sourceยง

fn wyzw(self) -> IVec4

Sourceยง

fn wywx(self) -> IVec4

Sourceยง

fn wywy(self) -> IVec4

Sourceยง

fn wywz(self) -> IVec4

Sourceยง

fn wyww(self) -> IVec4

Sourceยง

fn wzxx(self) -> IVec4

Sourceยง

fn wzxy(self) -> IVec4

Sourceยง

fn wzxz(self) -> IVec4

Sourceยง

fn wzxw(self) -> IVec4

Sourceยง

fn wzyx(self) -> IVec4

Sourceยง

fn wzyy(self) -> IVec4

Sourceยง

fn wzyz(self) -> IVec4

Sourceยง

fn wzyw(self) -> IVec4

Sourceยง

fn wzzx(self) -> IVec4

Sourceยง

fn wzzy(self) -> IVec4

Sourceยง

fn wzzz(self) -> IVec4

Sourceยง

fn wzzw(self) -> IVec4

Sourceยง

fn wzwx(self) -> IVec4

Sourceยง

fn wzwy(self) -> IVec4

Sourceยง

fn wzwz(self) -> IVec4

Sourceยง

fn wzww(self) -> IVec4

Sourceยง

fn wwxx(self) -> IVec4

Sourceยง

fn wwxy(self) -> IVec4

Sourceยง

fn wwxz(self) -> IVec4

Sourceยง

fn wwxw(self) -> IVec4

Sourceยง

fn wwyx(self) -> IVec4

Sourceยง

fn wwyy(self) -> IVec4

Sourceยง

fn wwyz(self) -> IVec4

Sourceยง

fn wwyw(self) -> IVec4

Sourceยง

fn wwzx(self) -> IVec4

Sourceยง

fn wwzy(self) -> IVec4

Sourceยง

fn wwzz(self) -> IVec4

Sourceยง

fn wwzw(self) -> IVec4

Sourceยง

fn wwwx(self) -> IVec4

Sourceยง

fn wwwy(self) -> IVec4

Sourceยง

fn wwwz(self) -> IVec4

Sourceยง

fn wwww(self) -> IVec4

Sourceยง

impl VectorTruncateInto<IVec2> for IVec4

Sourceยง

fn truncate_into(self) -> IVec2

Slices the vector into a lower dimensional type by ignoring the higher components
Sourceยง

impl VectorTruncateInto<IVec3> for IVec4

Sourceยง

fn truncate_into(self) -> IVec3

Slices the vector into a lower dimensional type by ignoring the higher components
Sourceยง

impl VectorTruncateInto<IVec4> for IVec4

Sourceยง

fn truncate_into(self) -> IVec4

Slices the vector into a lower dimensional type by ignoring the higher components
Sourceยง

impl VectorTruncateInto<i32> for IVec4

Sourceยง

fn truncate_into(self) -> i32

Slices the vector into a lower dimensional type by ignoring the higher components
Sourceยง

impl Copy for IVec4

Sourceยง

impl Eq for IVec4

Sourceยง

impl StructuralPartialEq for IVec4

Sourceยง

impl Vector<i32, 4> for IVec4

Auto Trait Implementationsยง

Blanket Implementationsยง

ยง

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

ยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
ยง

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

ยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
ยง

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

ยง

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

Mutably borrows from an owned value. Read more
ยง

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

ยง

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
Sourceยง

impl<T> Downcast<T> for T

Sourceยง

impl<T> Downcast for T
where T: Any,

Sourceยง

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Sourceยง

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Sourceยง

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Anyโ€™s vtable from &Traitโ€™s.
Sourceยง

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Anyโ€™s vtable from &mut Traitโ€™s.
Sourceยง

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Sourceยง

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Sourceยง

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

Sourceยง

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

Checks if this value is equivalent to the given key. Read more
Sourceยง

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

Sourceยง

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

Compare self to key and return true if they are equal.
Sourceยง

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

Sourceยง

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

Checks if this value is equivalent to the given key. Read more
ยง

impl<T> From<T> for T

ยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T> Instrument for T

Sourceยง

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

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Sourceยง

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
ยง

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

ยง

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
Sourceยง

impl<T> Pointable for T

Sourceยง

const ALIGN: usize

The alignment of pointer.
Sourceยง

type Init = T

The type for initializers.
Sourceยง

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Sourceยง

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Sourceยง

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Sourceยง

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Sourceยง

impl<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

Sourceยง

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
Sourceยง

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
Sourceยง

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
ยง

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

ยง

type Owned = T

The resulting type after obtaining ownership.
ยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
ยง

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

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

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

ยง

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

ยง

fn to_string(&self) -> String

Converts the given value to a String. Read more
ยง

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

ยง

type Error = Infallible

The type returned in the event of a conversion error.
ยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
ยง

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

ยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
ยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Sourceยง

impl<T> Upcast<T> for T

Sourceยง

impl<T> WithSubscriber for T

Sourceยง

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
Sourceยง

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
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>,

Sourceยง

impl<T> WasmNotSend for T
where T: Send,

Sourceยง

impl<T> WasmNotSendSync for T

Sourceยง

impl<T> WasmNotSync for T
where T: Sync,