pub struct AllocatedPages { /* private fields */ }Expand description
Allocated pages that can be mapped
Represents virtually allocated pages that own their underlying frames.
Implementations§
Source§impl AllocatedPages
impl AllocatedPages
Sourcepub fn start_address(&self) -> VirtAddr
pub fn start_address(&self) -> VirtAddr
Returns the starting virtual address
Sourcepub fn page_count(&self) -> usize
pub fn page_count(&self) -> usize
Returns the number of pages
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AllocatedPages
impl RefUnwindSafe for AllocatedPages
impl Send for AllocatedPages
impl Sync for AllocatedPages
impl Unpin for AllocatedPages
impl UnsafeUnpin for AllocatedPages
impl UnwindSafe for AllocatedPages
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more