#[repr(align(4096))]pub struct Aligned4K<T: Sized>(/* private fields */);
Expand description
A wrapper type for aligning a value to 4K bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Aligned4K<T>where
T: Freeze,
impl<T> RefUnwindSafe for Aligned4K<T>where
T: RefUnwindSafe,
impl<T> Send for Aligned4K<T>where
T: Send,
impl<T> Sync for Aligned4K<T>where
T: Sync,
impl<T> Unpin for Aligned4K<T>where
T: Unpin,
impl<T> UnwindSafe for Aligned4K<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