#[repr(C, align(16))]pub struct Element<T: Uniform>(pub T, pub T::Align);
Expand description
Aligning wrapper. Elements for array are aligned to 16 bytes (size of vec4) at least.
Tuple Fields§
§0: T
§1: T::Align
Trait Implementations§
Source§impl<T: Ord + Uniform> Ord for Element<T>
impl<T: Ord + Uniform> Ord for Element<T>
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: PartialOrd + Uniform> PartialOrd for Element<T>where
T::Align: PartialOrd,
impl<T: PartialOrd + Uniform> PartialOrd for Element<T>where
T::Align: PartialOrd,
impl<T: Copy + Uniform> Copy for Element<T>
impl<T: Eq + Uniform> Eq for Element<T>
impl<T: Uniform> StructuralPartialEq for Element<T>
Auto Trait Implementations§
impl<T> Freeze for Element<T>
impl<T> RefUnwindSafe for Element<T>
impl<T> Send for Element<T>
impl<T> Sync for Element<T>
impl<T> Unpin for Element<T>
impl<T> UnwindSafe for Element<T>
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