#[repr(C)]pub struct Aligned<A, T: ?Sized>(pub [A; 0], pub T);
Expand description
Helper which enforces that its given T
is aligned to at least the requested alignment of A
.
If the alignment of A
is lower than the required alignment of T
then its alignment is used instead.
Tuple Fields§
§0: [A; 0]
§1: T
Auto Trait Implementations§
impl<A, T> Freeze for Aligned<A, T>
impl<A, T> RefUnwindSafe for Aligned<A, T>
impl<A, T> Send for Aligned<A, T>
impl<A, T> Sync for Aligned<A, T>
impl<A, T> Unpin for Aligned<A, T>
impl<A, T> UnwindSafe for Aligned<A, 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