#[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: TAuto Trait Implementations§
impl<T> Freeze for Aligned<T>
impl<T> RefUnwindSafe for Aligned<T>where
    T: RefUnwindSafe + ?Sized,
impl<T> Send for Aligned<T>
impl<T> Sync for Aligned<T>
impl<T> Unpin for Aligned<T>
impl<T> UnwindSafe for Aligned<T>where
    T: UnwindSafe + ?Sized,
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