#[repr(C)]pub struct Vector3<T> {
pub x: T,
pub y: T,
pub z: T,
}
Fields§
§x: T
§y: T
§z: T
Implementations§
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for Vector3<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Vector3<T>where T: Deserialize<'de>,
source§fn deserialize<D>(
deserializer: D
) -> Result<Vector3<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Vector3<T>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> Ord for Vector3<T>where
T: Ord,
impl<T> Ord for Vector3<T>where T: Ord,
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T> PartialEq<Vector3<T>> for Vector3<T>where
T: PartialEq<T>,
impl<T> PartialEq<Vector3<T>> for Vector3<T>where T: PartialEq<T>,
source§impl<T> PartialOrd<Vector3<T>> for Vector3<T>where
T: PartialOrd<T>,
impl<T> PartialOrd<Vector3<T>> for Vector3<T>where T: PartialOrd<T>,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T> Serialize for Vector3<T>where
T: Serialize,
impl<T> Serialize for Vector3<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
impl<T> Copy for Vector3<T>where T: Copy,
impl<T> Eq for Vector3<T>where T: Eq,
impl<T> StructuralEq for Vector3<T>
impl<T> StructuralPartialEq for Vector3<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Vector3<T>where T: RefUnwindSafe,
impl<T> Send for Vector3<T>where T: Send,
impl<T> Sync for Vector3<T>where T: Sync,
impl<T> Unpin for Vector3<T>where T: Unpin,
impl<T> UnwindSafe for Vector3<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