#[repr(align(4))]pub struct Aligned<T: ?Sized>(pub T);
Expand description
A wrapper type that aligns its contents on a 4-Byte boundary.
ITM transfers are most efficient when the data is 4-Byte-aligned. This type provides an easy way to accomplish and enforce such an alignment.
Tuple Fields
0: T
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for Aligned<T>where
T: RefUnwindSafe,
impl<T: ?Sized> Send for Aligned<T>where
T: Send,
impl<T: ?Sized> Sync for Aligned<T>where
T: Sync,
impl<T: ?Sized> Unpin for Aligned<T>where
T: Unpin,
impl<T: ?Sized> UnwindSafe for Aligned<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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