#[repr(align(4))]pub struct WordAligned<Bytes: ?Sized>(pub Bytes);
Expand description
Wrapper aligning contents to at least 4.
Tuple Fields§
§0: Bytes
Auto Trait Implementations§
impl<Bytes> Freeze for WordAligned<Bytes>
impl<Bytes> RefUnwindSafe for WordAligned<Bytes>where
Bytes: RefUnwindSafe + ?Sized,
impl<Bytes> Send for WordAligned<Bytes>
impl<Bytes> Sync for WordAligned<Bytes>
impl<Bytes> Unpin for WordAligned<Bytes>
impl<Bytes> UnwindSafe for WordAligned<Bytes>where
Bytes: 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