#[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

Constructor.

Like Deref::deref but const.

Like DerefMut::deref_mut but const.

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.