pub struct AlignAs<const N: usize>(/* private fields */)
where
AlignAsStruct: AlignAsTrait<N>;
Expand description
Align a given struct to a given alignment. To use this, just include AlignAs<N>
as the first
member of the struct.
Implementations§
Auto Trait Implementations§
impl<const N: usize> !Freeze for AlignAs<N>
impl<const N: usize> !RefUnwindSafe for AlignAs<N>
impl<const N: usize> !Send for AlignAs<N>
impl<const N: usize> !Sync for AlignAs<N>
impl<const N: usize> !Unpin for AlignAs<N>
impl<const N: usize> !UnwindSafe for AlignAs<N>
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