pub struct Vector3<T: Component> {
pub x: T,
pub y: T,
pub z: T,
}
Expand description
A vector with x, y and z components derives traits: Default, Debug, PartialEq, Eq, Copy, Clone, Hash
Fields§
§x: T
§y: T
§z: T
Trait Implementations§
impl<T: Copy + Component> Copy for Vector3<T>
impl<T: Eq + Component> Eq for Vector3<T>
impl<T: Component> StructuralPartialEq for Vector3<T>
Auto Trait Implementations§
impl<T> Freeze for Vector3<T>where
T: Freeze,
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