#[repr(C)]pub struct Vec4<T> {
pub x: T,
pub y: T,
pub z: T,
pub w: T,
}
Expand description
4 dimensional vector.
Fields§
§x: T
x
coordinate of the vector
y: T
y
coordinate of the vector
z: T
z
coordinate of the vector
w: T
w
coordinate of the vector
Implementations§
Trait Implementations§
Source§impl<T> AddAssign for Vec4<T>where
T: AddAssign,
impl<T> AddAssign for Vec4<T>where
T: AddAssign,
Source§fn add_assign(&mut self, rhs: Vec4<T>)
fn add_assign(&mut self, rhs: Vec4<T>)
Performs the
+=
operation. Read moreSource§impl<'de, T> Deserialize<'de> for Vec4<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Vec4<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Vec4<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Vec4<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> DivAssign<T> for Vec4<T>
impl<T> DivAssign<T> for Vec4<T>
Source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/=
operation. Read moreSource§impl<T> MulAssign<T> for Vec4<T>
impl<T> MulAssign<T> for Vec4<T>
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*=
operation. Read moreSource§impl<T> Serialize for Vec4<T>where
T: Serialize,
impl<T> Serialize for Vec4<T>where
T: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<T> SubAssign for Vec4<T>where
T: SubAssign,
impl<T> SubAssign for Vec4<T>where
T: SubAssign,
Source§fn sub_assign(&mut self, rhs: Vec4<T>)
fn sub_assign(&mut self, rhs: Vec4<T>)
Performs the
-=
operation. Read moreSource§impl VertexAttribute for Vec4<f32>
impl VertexAttribute for Vec4<f32>
impl<T> Copy for Vec4<T>where
T: Copy,
impl<T> Eq for Vec4<T>where
T: Eq,
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Configurable for T
impl<T> Configurable for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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