#[repr(align(4))]pub struct Align4<T: ?Sized>(pub T);
Expand description
A newtype with alignment of at least 4 bytes
Tuple Fields§
§0: T
Trait Implementations§
impl<T: Copy + ?Sized> Copy for Align4<T>
Auto Trait Implementations§
impl<T> Freeze for Align4<T>
impl<T> RefUnwindSafe for Align4<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for Align4<T>
impl<T> Sync for Align4<T>
impl<T> Unpin for Align4<T>
impl<T> UnwindSafe for Align4<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