pub enum Mapping {
Dynamic,
FixedAddress(u64),
}
Expand description
Specifies how the bootloader should map a memory region into the virtual address space.
Variants§
Dynamic
Look for an unused virtual memory region at runtime.
FixedAddress(u64)
Try to map the region at the given virtual address.
The given virtual address must be page-aligned.
This setting can lead to runtime boot errors if the given address is not aligned, already in use, or invalid for other reasons.
Implementations§
Source§impl Mapping
impl Mapping
Sourcepub const fn new_default() -> Self
pub const fn new_default() -> Self
Creates a new Mapping::Dynamic
.
This function has identical results as Default::default
, the only difference is
that this is a const
function.
Trait Implementations§
Source§impl Ord for Mapping
impl Ord for Mapping
Source§impl PartialOrd for Mapping
impl PartialOrd for Mapping
impl Copy for Mapping
impl Eq for Mapping
impl StructuralPartialEq for Mapping
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnwindSafe for Mapping
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