pub struct Size2M;Expand description
2 MiB page (2_097_152 bytes).
Trait Implementations§
Source§impl MapSize for Size2M
 
impl MapSize for Size2M
Source§fn ensure_chain_for<A: FrameAlloc, M: PhysMapper>(
    aspace: &AddressSpace<'_, M>,
    alloc: &mut A,
    va: VirtualAddress,
    nonleaf_flags: VirtualMemoryPageBits,
) -> Result<PhysicalPage<Size4K>, MapSizeEnsureChainError>
 
fn ensure_chain_for<A: FrameAlloc, M: PhysMapper>( aspace: &AddressSpace<'_, M>, alloc: &mut A, va: VirtualAddress, nonleaf_flags: VirtualMemoryPageBits, ) -> Result<PhysicalPage<Size4K>, MapSizeEnsureChainError>
Ensure that the non-leaf chain for 
va exists down to the table that
holds the leaf for Self, allocating and linking intermediate
tables as needed. Read moreSource§fn set_leaf<M: PhysMapper>(
    aspace: &AddressSpace<'_, M>,
    leaf_tbl_page: PhysicalPage<Size4K>,
    va: VirtualAddress,
    pa: PhysicalAddress,
    leaf_flags: VirtualMemoryPageBits,
)
 
fn set_leaf<M: PhysMapper>( aspace: &AddressSpace<'_, M>, leaf_tbl_page: PhysicalPage<Size4K>, va: VirtualAddress, pa: PhysicalAddress, leaf_flags: VirtualMemoryPageBits, )
Install the leaf entry for 
va → pa in the leaf_tbl_page
returned by ensure_chain_for, with the given leaf_flags. Read moreSource§impl Ord for Size2M
 
impl Ord for Size2M
Source§impl PartialOrd for Size2M
 
impl PartialOrd for Size2M
impl Copy for Size2M
impl Eq for Size2M
impl Sealed for Size2M
impl StructuralPartialEq for Size2M
Auto Trait Implementations§
impl Freeze for Size2M
impl RefUnwindSafe for Size2M
impl Send for Size2M
impl Sync for Size2M
impl Unpin for Size2M
impl UnwindSafe for Size2M
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