pub struct VecPacked;
Expand description
See VecAlignment
.
ensures that the vector has the same type-layout as [T; N]
.
assert_eq!(
size_of::<Vector<N, T, VecPacked>>(),
size_of::<T>() * N
);
assert_eq!(
align_of::<Vector<N, T, VecPacked>>(),
align_of::<T>()
);
Trait Implementations§
Source§impl VecAlignment for VecPacked
impl VecAlignment for VecPacked
Source§type InnerVector<const N: usize, T: Scalar> = [T; N]
where
ScalarCount<N>: VecLen
type InnerVector<const N: usize, T: Scalar> = [T; N] where ScalarCount<N>: VecLen
Auto Trait Implementations§
impl Freeze for VecPacked
impl RefUnwindSafe for VecPacked
impl Send for VecPacked
impl Sync for VecPacked
impl Unpin for VecPacked
impl UnwindSafe for VecPacked
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