pub struct MemoryConfig {
pub paging: bool,
pub uefi_memory_map: bool,
}Expand description
A suite-level memory configuration.
This describes high-level assumptions about the environment.
Fields§
§paging: boolWhether paging/virtual memory is expected.
uefi_memory_map: boolWhether the environment is expected to provide a UEFI memory map.
Implementations§
Source§impl MemoryConfig
impl MemoryConfig
Sourcepub const fn default_bare_metal() -> Self
pub const fn default_bare_metal() -> Self
Conservative bare-metal defaults.
Sourcepub const fn default_uefi() -> Self
pub const fn default_uefi() -> Self
Conservative UEFI defaults.
Trait Implementations§
Source§impl Clone for MemoryConfig
impl Clone for MemoryConfig
Source§fn clone(&self) -> MemoryConfig
fn clone(&self) -> MemoryConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryConfig
impl Debug for MemoryConfig
Source§impl PartialEq for MemoryConfig
impl PartialEq for MemoryConfig
impl Copy for MemoryConfig
impl Eq for MemoryConfig
impl StructuralPartialEq for MemoryConfig
Auto Trait Implementations§
impl Freeze for MemoryConfig
impl RefUnwindSafe for MemoryConfig
impl Send for MemoryConfig
impl Sync for MemoryConfig
impl Unpin for MemoryConfig
impl UnsafeUnpin for MemoryConfig
impl UnwindSafe for MemoryConfig
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