Vec4

Struct Vec4 

Source
#[repr(C)]
pub struct Vec4<T> { pub x: T, pub y: T, pub z: T, pub w: T, }

Fields§

§x: T§y: T§z: T§w: T

Implementations§

Source§

impl<T> Vec4<T>

Source

pub fn splat(value: T) -> Self
where T: Copy,

Source

pub fn splat_from_scalar(value: Scalar<T>) -> Self
where T: Copy,

Source

pub const fn select(self, trues: Self, mask: Vec4<bool>) -> Self
where T: Copy,

Replaces the elements of self with the elements of trues wherever mask contains true.

Source

pub fn map<U, F>(self, f: F) -> Vec4<U>
where F: FnMut(T) -> U,

Source§

impl Vec4<i32>

Source

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

Source

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

Source§

impl Vec4<u32>

Source

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

Source

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

Source§

impl Vec4<f32>

Source

pub const fn clamp(self, low: Self, high: Self) -> Self

As per WGSL clamp().

Source

pub fn distance(self, rhs: Self) -> f32

As per WGSL distance().

Source

pub const fn dot(self, rhs: Self) -> f32

As per WGSL dot().

Source

pub fn face_forward(self, e2: Self, e3: Self) -> Self

As per WGSL faceForward().

Source

pub fn length(self) -> f32

As per WGSL length().

Source

pub const fn mix(self, rhs: Self, blend: f32) -> Self

As per WGSL mix().

Source

pub fn mul_add(self, b: Self, c: Self) -> Self

As per WGSL fma().

Source

pub fn normalize(self) -> Self

As per WGSL normalize().

Source

pub fn reflect(self, rhs: Self) -> Self

As per WGSL reflect().

Source

pub const fn saturate(self) -> Self

As per WGSL saturate().

Source

pub const fn sign(self) -> Self

As per WGSL sign().

Source

pub const fn abs(self) -> Self

Source

pub fn acos(self) -> Self

Source

pub fn acosh(self) -> Self

Source

pub fn asin(self) -> Self

Source

pub fn asinh(self) -> Self

Source

pub fn atan(self) -> Self

Source

pub fn atanh(self) -> Self

Source

pub fn ceil(self) -> Self

Source

pub fn cos(self) -> Self

Source

pub fn cosh(self) -> Self

Source

pub fn exp(self) -> Self

Source

pub fn exp2(self) -> Self

Source

pub fn floor(self) -> Self

Source

pub fn fract(self) -> Self

Source

pub fn log2(self) -> Self

Source

pub fn round(self) -> Self

Source

pub fn sin(self) -> Self

Source

pub fn sinh(self) -> Self

Source

pub fn tan(self) -> Self

Source

pub fn tanh(self) -> Self

Source

pub fn trunc(self) -> Self

Source

pub fn to_degrees(self) -> Self

Source

pub fn to_radians(self) -> Self

Source

pub fn atan2(self, rhs: Self) -> Self

Source

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

Source

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

Source

pub fn powf(self, rhs: Self) -> Self

Source§

impl Vec4<f64>

Source

pub const fn clamp(self, low: Self, high: Self) -> Self

As per WGSL clamp().

Source

pub fn distance(self, rhs: Self) -> f64

As per WGSL distance().

Source

pub const fn dot(self, rhs: Self) -> f64

As per WGSL dot().

Source

pub fn face_forward(self, e2: Self, e3: Self) -> Self

As per WGSL faceForward().

Source

pub fn length(self) -> f64

As per WGSL length().

Source

pub const fn mix(self, rhs: Self, blend: f64) -> Self

As per WGSL mix().

Source

pub fn mul_add(self, b: Self, c: Self) -> Self

As per WGSL fma().

Source

pub fn normalize(self) -> Self

As per WGSL normalize().

Source

pub fn reflect(self, rhs: Self) -> Self

As per WGSL reflect().

Source

pub const fn saturate(self) -> Self

As per WGSL saturate().

Source

pub const fn sign(self) -> Self

As per WGSL sign().

Source

pub const fn abs(self) -> Self

Source

pub fn acos(self) -> Self

Source

pub fn acosh(self) -> Self

Source

pub fn asin(self) -> Self

Source

pub fn asinh(self) -> Self

Source

pub fn atan(self) -> Self

Source

pub fn atanh(self) -> Self

Source

pub fn ceil(self) -> Self

Source

pub fn cos(self) -> Self

Source

pub fn cosh(self) -> Self

Source

pub fn exp(self) -> Self

Source

pub fn exp2(self) -> Self

Source

pub fn floor(self) -> Self

Source

pub fn fract(self) -> Self

Source

pub fn log2(self) -> Self

Source

pub fn round(self) -> Self

Source

pub fn sin(self) -> Self

Source

pub fn sinh(self) -> Self

Source

pub fn tan(self) -> Self

Source

pub fn tanh(self) -> Self

Source

pub fn trunc(self) -> Self

Source

pub fn to_degrees(self) -> Self

Source

pub fn to_radians(self) -> Self

Source

pub fn atan2(self, rhs: Self) -> Self

Source

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

Source

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

Source

pub fn powf(self, rhs: Self) -> Self

Source§

impl Vec4<i32>

Source§

impl Vec4<u32>

Source§

impl Vec4<f32>

Source§

impl Vec4<f64>

Source§

impl<T: ConstZero> Vec4<T>

Source

pub const ZERO: Self

Source§

impl<T: PartialOrd> Vec4<T>

Source

pub fn elementwise_eq(self, rhs: Self) -> Vec4<bool>

Source

pub fn elementwise_ne(self, rhs: Self) -> Vec4<bool>

Source

pub fn elementwise_lt(self, rhs: Self) -> Vec4<bool>

Source

pub fn elementwise_le(self, rhs: Self) -> Vec4<bool>

Source

pub fn elementwise_gt(self, rhs: Self) -> Vec4<bool>

Source

pub fn elementwise_ge(self, rhs: Self) -> Vec4<bool>

Source§

impl Vec4<i32>

Source

pub const fn abs(self) -> Self

Source§

impl Vec4<u32>

Source

pub fn abs(self) -> Self

Source§

impl<T> Vec4<T>

Source

pub const fn new(x: T, y: T, z: T, w: T) -> Self

Source

pub const fn from_scalars( x: Scalar<T>, y: Scalar<T>, z: Scalar<T>, w: Scalar<T>, ) -> Self
where T: Copy,

Source§

impl<T: Copy> Vec4<T>

Source

pub const fn new_112(x: T, y: T, zw: Vec2<T>) -> Self

Source

pub const fn new_121(x: T, yz: Vec2<T>, w: T) -> Self

Source

pub const fn new_211(xy: Vec2<T>, z: T, w: T) -> Self

Source

pub const fn new_22(xy: Vec2<T>, zw: Vec2<T>) -> Self

Source

pub const fn new_13(x: T, yzw: Vec3<T>) -> Self

Source

pub const fn new_31(xyz: Vec3<T>, w: T) -> Self

Source§

impl<T: Copy> Vec4<T>

Source

pub fn xy(self) -> Vec2<T>

Takes the x, y elements of self and returns them in that order.

Source

pub fn yx(self) -> Vec2<T>

Takes the y, x elements of self and returns them in that order.

Source

pub fn xyz(self) -> Vec3<T>

Takes the x, y, z elements of self and returns them in that order.

Source

pub fn xzy(self) -> Vec3<T>

Takes the x, z, y elements of self and returns them in that order.

Source

pub fn yxz(self) -> Vec3<T>

Takes the y, x, z elements of self and returns them in that order.

Source

pub fn yzx(self) -> Vec3<T>

Takes the y, z, x elements of self and returns them in that order.

Source

pub fn zxy(self) -> Vec3<T>

Takes the z, x, y elements of self and returns them in that order.

Source

pub fn zyx(self) -> Vec3<T>

Takes the z, y, x elements of self and returns them in that order.

Source

pub fn xyzw(self) -> Vec4<T>

Takes the x, y, z, w elements of self and returns them in that order.

Source

pub fn xywz(self) -> Vec4<T>

Takes the x, y, w, z elements of self and returns them in that order.

Source

pub fn xzwy(self) -> Vec4<T>

Takes the x, z, w, y elements of self and returns them in that order.

Source

pub fn xzyw(self) -> Vec4<T>

Takes the x, z, y, w elements of self and returns them in that order.

Source

pub fn xwyz(self) -> Vec4<T>

Takes the x, w, y, z elements of self and returns them in that order.

Source

pub fn xwzy(self) -> Vec4<T>

Takes the x, w, z, y elements of self and returns them in that order.

Source

pub fn yxzw(self) -> Vec4<T>

Takes the y, x, z, w elements of self and returns them in that order.

Source

pub fn yxwz(self) -> Vec4<T>

Takes the y, x, w, z elements of self and returns them in that order.

Source

pub fn yzxw(self) -> Vec4<T>

Takes the y, z, x, w elements of self and returns them in that order.

Source

pub fn yzwx(self) -> Vec4<T>

Takes the y, z, w, x elements of self and returns them in that order.

Source

pub fn ywzx(self) -> Vec4<T>

Takes the y, w, z, x elements of self and returns them in that order.

Source

pub fn ywxz(self) -> Vec4<T>

Takes the y, w, x, z elements of self and returns them in that order.

Source

pub fn zxyw(self) -> Vec4<T>

Takes the z, x, y, w elements of self and returns them in that order.

Source

pub fn zxwy(self) -> Vec4<T>

Takes the z, x, w, y elements of self and returns them in that order.

Source

pub fn zyxw(self) -> Vec4<T>

Takes the z, y, x, w elements of self and returns them in that order.

Source

pub fn zywx(self) -> Vec4<T>

Takes the z, y, w, x elements of self and returns them in that order.

Source

pub fn zwxy(self) -> Vec4<T>

Takes the z, w, x, y elements of self and returns them in that order.

Source

pub fn zwyx(self) -> Vec4<T>

Takes the z, w, y, x elements of self and returns them in that order.

Source

pub fn wxyz(self) -> Vec4<T>

Takes the w, x, y, z elements of self and returns them in that order.

Source

pub fn wxzy(self) -> Vec4<T>

Takes the w, x, z, y elements of self and returns them in that order.

Source

pub fn wyxz(self) -> Vec4<T>

Takes the w, y, x, z elements of self and returns them in that order.

Source

pub fn wyzx(self) -> Vec4<T>

Takes the w, y, z, x elements of self and returns them in that order.

Source

pub fn wzxy(self) -> Vec4<T>

Takes the w, z, x, y elements of self and returns them in that order.

Source

pub fn wzyx(self) -> Vec4<T>

Takes the w, z, y, x elements of self and returns them in that order.

Trait Implementations§

Source§

impl<T> Add<Vec4<T>> for Scalar<T>
where Vec4<T>: Add<Scalar<T>>,

Source§

type Output = <Vec4<T> as Add<Scalar<T>>>::Output

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vec4<T>) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<f32> for Vec4<f32>

Source§

type Output = Vec4<f32>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: f32) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<f64> for Vec4<f64>

Source§

type Output = Vec4<f64>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: f64) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<i32> for Vec4<i32>

Source§

fn add(self, rhs: i32) -> Self::Output

Wrapping addition.

Source§

type Output = Vec4<i32>

The resulting type after applying the + operator.
Source§

impl Add<u32> for Vec4<u32>

Source§

fn add(self, rhs: u32) -> Self::Output

Wrapping addition.

Source§

type Output = Vec4<u32>

The resulting type after applying the + operator.
Source§

impl Add for Vec4<f32>

Source§

type Output = Vec4<f32>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Vec4<f64>

Source§

type Output = Vec4<f64>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Vec4<i32>

Source§

fn add(self, rhs: Self) -> Self::Output

Wrapping addition.

Source§

type Output = Vec4<i32>

The resulting type after applying the + operator.
Source§

impl Add for Vec4<u32>

Source§

fn add(self, rhs: Self) -> Self::Output

Wrapping addition.

Source§

type Output = Vec4<u32>

The resulting type after applying the + operator.
Source§

impl BitAnd for Vec4<bool>

Source§

type Output = Vec4<bool>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for Vec4<i32>

Source§

type Output = Vec4<i32>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for Vec4<u32>

Source§

type Output = Vec4<u32>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitOr for Vec4<bool>

Source§

type Output = Vec4<bool>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr for Vec4<i32>

Source§

type Output = Vec4<i32>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr for Vec4<u32>

Source§

type Output = Vec4<u32>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
Source§

impl BitXor for Vec4<bool>

Source§

type Output = Vec4<bool>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for Vec4<i32>

Source§

type Output = Vec4<i32>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for Vec4<u32>

Source§

type Output = Vec4<u32>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<T: Clone> Clone for Vec4<T>

Source§

fn clone(&self) -> Vec4<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<T: ConstZero> ConstZero for Vec4<T>
where Self: Add<Output = Self>,

Source§

const ZERO: Self

The additive identity element of Self, 0.
Source§

impl<T: Debug> Debug for Vec4<T>

Source§

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

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

impl Div<f32> for Vec4<f32>

Source§

type Output = Vec4<f32>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f32) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<f64> for Vec4<f64>

Source§

type Output = Vec4<f64>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<i32> for Vec4<i32>

Source§

fn div(self, rhs: i32) -> Self::Output

On division by zero or overflow, returns self, per WGSL.

Source§

type Output = Vec4<i32>

The resulting type after applying the / operator.
Source§

impl Div<u32> for Vec4<u32>

Source§

fn div(self, rhs: u32) -> Self::Output

On division by zero or overflow, returns self, per WGSL.

Source§

type Output = Vec4<u32>

The resulting type after applying the / operator.
Source§

impl Div for Vec4<f32>

Source§

type Output = Vec4<f32>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Vec4<f64>

Source§

type Output = Vec4<f64>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Vec4<i32>

Source§

fn div(self, rhs: Self) -> Self::Output

On division by zero or overflow, returns the component of self, per WGSL.

Source§

type Output = Vec4<i32>

The resulting type after applying the / operator.
Source§

impl Div for Vec4<u32>

Source§

fn div(self, rhs: Self) -> Self::Output

On division by zero or overflow, returns the component of self, per WGSL.

Source§

type Output = Vec4<u32>

The resulting type after applying the / operator.
Source§

impl<T> From<[T; 4]> for Vec4<T>

Source§

fn from(value: [T; 4]) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Vec4<T>> for [T; 4]

Source§

fn from(value: Vec4<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: Hash> Hash for Vec4<T>

Source§

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

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<T> Mul<Vec4<T>> for Scalar<T>
where Vec4<T>: Mul<Scalar<T>>,

Source§

type Output = <Vec4<T> as Mul<Scalar<T>>>::Output

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vec4<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f32> for Vec4<f32>

Source§

type Output = Vec4<f32>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f32) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f64> for Vec4<f64>

Source§

type Output = Vec4<f64>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<i32> for Vec4<i32>

Source§

fn mul(self, rhs: i32) -> Self::Output

Wrapping multiplication.

Source§

type Output = Vec4<i32>

The resulting type after applying the * operator.
Source§

impl Mul<u32> for Vec4<u32>

Source§

fn mul(self, rhs: u32) -> Self::Output

Wrapping multiplication.

Source§

type Output = Vec4<u32>

The resulting type after applying the * operator.
Source§

impl Mul for Vec4<f32>

Source§

type Output = Vec4<f32>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Vec4<f64>

Source§

type Output = Vec4<f64>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Vec4<i32>

Source§

fn mul(self, rhs: Self) -> Self::Output

Wrapping multiplication.

Source§

type Output = Vec4<i32>

The resulting type after applying the * operator.
Source§

impl Mul for Vec4<u32>

Source§

fn mul(self, rhs: Self) -> Self::Output

Wrapping multiplication.

Source§

type Output = Vec4<u32>

The resulting type after applying the * operator.
Source§

impl Not for Vec4<bool>

Source§

type Output = Vec4<bool>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for Vec4<i32>

Source§

type Output = Vec4<i32>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for Vec4<u32>

Source§

type Output = Vec4<u32>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<T: PartialEq> PartialEq for Vec4<T>

Source§

fn eq(&self, other: &Vec4<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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 Rem<f32> for Vec4<f32>

Source§

type Output = Vec4<f32>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: f32) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<f64> for Vec4<f64>

Source§

type Output = Vec4<f64>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: f64) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<i32> for Vec4<i32>

Source§

type Output = Vec4<i32>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i32) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<u32> for Vec4<u32>

Source§

type Output = Vec4<u32>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u32) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Vec4<f32>

Source§

type Output = Vec4<f32>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Vec4<f64>

Source§

type Output = Vec4<f64>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Vec4<i32>

Source§

type Output = Vec4<i32>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Vec4<u32>

Source§

type Output = Vec4<u32>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Sub<f32> for Vec4<f32>

Source§

type Output = Vec4<f32>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: f32) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<f64> for Vec4<f64>

Source§

type Output = Vec4<f64>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: f64) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<i32> for Vec4<i32>

Source§

fn sub(self, rhs: i32) -> Self::Output

Wrapping subtraction.

Source§

type Output = Vec4<i32>

The resulting type after applying the - operator.
Source§

impl Sub<u32> for Vec4<u32>

Source§

fn sub(self, rhs: u32) -> Self::Output

Wrapping subtraction.

Source§

type Output = Vec4<u32>

The resulting type after applying the - operator.
Source§

impl Sub for Vec4<f32>

Source§

type Output = Vec4<f32>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Vec4<f64>

Source§

type Output = Vec4<f64>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Vec4<i32>

Source§

fn sub(self, rhs: Self) -> Self::Output

Wrapping subtraction.

Source§

type Output = Vec4<i32>

The resulting type after applying the - operator.
Source§

impl Sub for Vec4<u32>

Source§

fn sub(self, rhs: Self) -> Self::Output

Wrapping subtraction.

Source§

type Output = Vec4<u32>

The resulting type after applying the - operator.
Source§

impl<T: ConstZero> Zero for Vec4<T>
where Self: Add<Output = Self>,

Source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
Source§

impl<T: Copy> Copy for Vec4<T>

Source§

impl<T: Eq> Eq for Vec4<T>

Source§

impl<T> StructuralPartialEq for Vec4<T>

Auto Trait Implementations§

§

impl<T> Freeze for Vec4<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for Vec4<T>
where T: RefUnwindSafe,

§

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

§

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

§

impl<T> Unpin for Vec4<T>
where T: Unpin,

§

impl<T> UnwindSafe for Vec4<T>
where T: UnwindSafe,

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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