#[repr(C, align(4096))]pub struct Table<L>where
L: TableLevel,{ /* private fields */ }
Implementations§
Source§impl<L> Table<L>where
L: HierarchicalLevel,
impl<L> Table<L>where
L: HierarchicalLevel,
Sourcepub fn next_table(
&self,
index: usize,
physical_base: VAddr,
) -> Option<&Table<L::NextLevel>>
pub fn next_table( &self, index: usize, physical_base: VAddr, ) -> Option<&Table<L::NextLevel>>
Get a reference to the table at the given index
, assuming the entirity of
the physical address space is mapped from physical_base
.
Sourcepub fn next_table_mut(
&mut self,
index: usize,
physical_base: VAddr,
) -> Option<&mut Table<L::NextLevel>>
pub fn next_table_mut( &mut self, index: usize, physical_base: VAddr, ) -> Option<&mut Table<L::NextLevel>>
Get a mutable reference to the table at the given index
, assuming the entirity of
the physical address space is mapped from physical_base
.
pub fn next_table_create<A>(
&mut self,
index: usize,
allocator: &A,
physical_base: VAddr,
) -> Result<&mut Table<L::NextLevel>, PagingError>where
A: FrameAllocator<Size4KiB>,
Trait Implementations§
Auto Trait Implementations§
impl<L> Freeze for Table<L>
impl<L> RefUnwindSafe for Table<L>where
L: RefUnwindSafe,
impl<L> Send for Table<L>where
L: Send,
impl<L> Sync for Table<L>where
L: Sync,
impl<L> Unpin for Table<L>where
L: Unpin,
impl<L> UnwindSafe for Table<L>where
L: 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