pub struct Vec3<R: Real = f32> {
pub x: R,
pub y: R,
pub z: R,
}Fields§
§x: R§y: R§z: RImplementations§
Trait Implementations§
Source§impl<R: Real> AddAssign for Vec3<R>
impl<R: Real> AddAssign for Vec3<R>
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl<'de, R> Deserialize<'de> for Vec3<R>where
R: Deserialize<'de> + Real,
impl<'de, R> Deserialize<'de> for Vec3<R>where
R: Deserialize<'de> + Real,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<R: Real> SubAssign for Vec3<R>
impl<R: Real> SubAssign for Vec3<R>
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreimpl<R: Copy + Real> Copy for Vec3<R>
impl<R: Real> StructuralPartialEq for Vec3<R>
Auto Trait Implementations§
impl<R> Freeze for Vec3<R>where
R: Freeze,
impl<R> RefUnwindSafe for Vec3<R>where
R: RefUnwindSafe,
impl<R> Send for Vec3<R>where
R: Send,
impl<R> Sync for Vec3<R>where
R: Sync,
impl<R> Unpin for Vec3<R>where
R: Unpin,
impl<R> UnwindSafe for Vec3<R>where
R: 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
Source§fn read<F, E>(size: usize, f: F) -> Result<T, E>
fn read<F, E>(size: usize, f: F) -> Result<T, E>
Prepares an output buffer, then turns this buffer into an
Owned.Source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
Source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
Source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
Source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.