pub struct Size1G;Expand description
1 GiB page (1_073_741_824 bytes).
Trait Implementations§
Source§impl MapSize for Size1G
 
impl MapSize for Size1G
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 Size1G
 
impl Ord for Size1G
Source§impl PartialOrd for Size1G
 
impl PartialOrd for Size1G
impl Copy for Size1G
impl Eq for Size1G
impl Sealed for Size1G
impl StructuralPartialEq for Size1G
Auto Trait Implementations§
impl Freeze for Size1G
impl RefUnwindSafe for Size1G
impl Send for Size1G
impl Sync for Size1G
impl Unpin for Size1G
impl UnwindSafe for Size1G
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