pub struct Allocation { /* private fields */ }
Expand description
Represents an allocation of 1 or more pages of memory
Implementations§
Source§impl Allocation
impl Allocation
Source§impl Allocation
impl Allocation
Sourcepub fn try_into_pages_mut(self) -> Result<MutPages, IntoPagesError<Self>>
pub fn try_into_pages_mut(self) -> Result<MutPages, IntoPagesError<Self>>
Converts this Allocation
into MutPages
§Errors
Will error if protecting the pages fails, error object contains this Allocation
.
Source§impl Allocation
impl Allocation
Sourcepub fn try_into_pages(self) -> Result<Pages, IntoPagesError<Self>>
pub fn try_into_pages(self) -> Result<Pages, IntoPagesError<Self>>
Converts this Allocation
into Pages
§Errors
Will error if protecting the pages fails, error object contains this Allocation
.
Source§impl Allocation
impl Allocation
Sourcepub fn try_into_pages_inaccessible(
self,
) -> Result<InaccessiblePages, IntoPagesError<Self>>
pub fn try_into_pages_inaccessible( self, ) -> Result<InaccessiblePages, IntoPagesError<Self>>
Converts this Allocation
into InaccessiblePages
§Errors
Will error if protecting the pages fails, error object contains this Allocation
.
Trait Implementations§
Source§impl Debug for Allocation
impl Debug for Allocation
Source§impl Drop for Allocation
impl Drop for Allocation
Source§impl TryFrom<Allocation> for InaccessiblePages
impl TryFrom<Allocation> for InaccessiblePages
Source§type Error = IntoPagesError<Allocation>
type Error = IntoPagesError<Allocation>
The type returned in the event of a conversion error.
Source§impl TryFrom<Allocation> for MutPages
impl TryFrom<Allocation> for MutPages
Source§type Error = IntoPagesError<Allocation>
type Error = IntoPagesError<Allocation>
The type returned in the event of a conversion error.
Source§impl TryFrom<Allocation> for Pages
impl TryFrom<Allocation> for Pages
Source§type Error = IntoPagesError<Allocation>
type Error = IntoPagesError<Allocation>
The type returned in the event of a conversion error.
Source§impl TryFrom<InaccessiblePages> for Allocation
impl TryFrom<InaccessiblePages> for Allocation
Source§type Error = InaccessiblePages
type Error = InaccessiblePages
The type returned in the event of a conversion error.
Source§impl TryFrom<MutPages> for Allocation
impl TryFrom<MutPages> for Allocation
Source§impl TryFrom<Pages> for Allocation
impl TryFrom<Pages> for Allocation
impl Send for Allocation
impl Sync for Allocation
Auto Trait Implementations§
impl !Freeze for Allocation
impl RefUnwindSafe for Allocation
impl Unpin for Allocation
impl UnwindSafe for Allocation
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