#[repr(align(4096))]pub struct PageAligned<T>(/* private fields */);
Expand description
Wrapper around a T
that gets page-aligned.
All important methods allow the usage in const contexts.
Implementations§
source§impl<T> PageAligned<T>
impl<T> PageAligned<T>
sourcepub const fn deref_const(&self) -> &T
pub const fn deref_const(&self) -> &T
Like Deref::deref
but const.
sourcepub const fn deref_mut_const(&mut self) -> &mut T
pub const fn deref_mut_const(&mut self) -> &mut T
Like DerefMut::deref_mut
but const.
Trait Implementations§
source§impl<T: Debug> Debug for PageAligned<T>
impl<T: Debug> Debug for PageAligned<T>
source§impl<T> Deref for PageAligned<T>
impl<T> Deref for PageAligned<T>
source§impl<T> DerefMut for PageAligned<T>
impl<T> DerefMut for PageAligned<T>
Auto Trait Implementations§
impl<T> Freeze for PageAligned<T>where
T: Freeze,
impl<T> RefUnwindSafe for PageAligned<T>where
T: RefUnwindSafe,
impl<T> Send for PageAligned<T>where
T: Send,
impl<T> Sync for PageAligned<T>where
T: Sync,
impl<T> Unpin for PageAligned<T>where
T: Unpin,
impl<T> UnwindSafe for PageAligned<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