Struct simple_chunk_allocator::PageAligned
source · [−]#[repr(align(4096))]pub struct PageAligned<T>(_);
Expand description
Wrapper around a T
that gets page-aligned.
All important methods allow the usage in const contexts.
Implementations
sourceimpl<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
sourceimpl<T: Debug> Debug for PageAligned<T>
impl<T: Debug> Debug for PageAligned<T>
sourceimpl<T> Deref for PageAligned<T>
impl<T> Deref for PageAligned<T>
sourceimpl<T> DerefMut for PageAligned<T>
impl<T> DerefMut for PageAligned<T>
sourceimpl<T> From<T> for PageAligned<T>
impl<T> From<T> for PageAligned<T>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more