#[repr(C, align(8))]pub(crate) struct Align8<T: ?Sized>(pub T);
Expand description
Align the inner value to 8 bytes.
This is enough for almost all of the buffers we’re likely to work with in the Windows APIs we use.
Tuple Fields§
§0: T
Trait Implementations§
Auto Trait Implementations§
impl<T: ?Sized> RefUnwindSafe for Align8<T>where T: RefUnwindSafe,
impl<T: ?Sized> Send for Align8<T>where T: Send,
impl<T: ?Sized> Sync for Align8<T>where T: Sync,
impl<T: ?Sized> Unpin for Align8<T>where T: Unpin,
impl<T: ?Sized> UnwindSafe for Align8<T>where T: UnwindSafe,
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