Expand description
Scalar vectors.
Scalar vectors come into three flavors, based on the dimension used:
Each type implements the From
trait for sized array. For instance, if you want to make a V3<f32>
from
constants / literals, you can simply use the implementor From<[f32; 3]> for V3<f32>
.
A builder macro version exists for each flavor:
Those three macros can also be used with literals.
Tuple Fields
0: [T; 3]
Trait Implementations
impl<T: Copy> Copy for V3<T>
impl<T> StructuralPartialEq for V3<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for V3<T> where
T: RefUnwindSafe,
impl<T> Send for V3<T> where
T: Send,
impl<T> Sync for V3<T> where
T: Sync,
impl<T> Unpin for V3<T> where
T: Unpin,
impl<T> UnwindSafe for V3<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more