Struct uefi_raw::table::boot::MemoryDescriptor
source · #[repr(C)]pub struct MemoryDescriptor {
pub ty: MemoryType,
pub phys_start: PhysicalAddress,
pub virt_start: VirtualAddress,
pub page_count: u64,
pub att: MemoryAttribute,
}
Expand description
A structure describing a region of memory.
Fields§
§ty: MemoryType
Type of memory occupying this range.
phys_start: PhysicalAddress
Starting physical address.
virt_start: VirtualAddress
Starting virtual address.
page_count: u64
Number of 4 KiB pages contained in this range.
att: MemoryAttribute
The capability attributes of this memory range.
Implementations§
Trait Implementations§
source§impl Clone for MemoryDescriptor
impl Clone for MemoryDescriptor
source§fn clone(&self) -> MemoryDescriptor
fn clone(&self) -> MemoryDescriptor
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MemoryDescriptor
impl Debug for MemoryDescriptor
source§impl Default for MemoryDescriptor
impl Default for MemoryDescriptor
source§fn default() -> MemoryDescriptor
fn default() -> MemoryDescriptor
Returns the “default value” for a type. Read more
source§impl Hash for MemoryDescriptor
impl Hash for MemoryDescriptor
source§impl Ord for MemoryDescriptor
impl Ord for MemoryDescriptor
source§impl PartialEq for MemoryDescriptor
impl PartialEq for MemoryDescriptor
source§fn eq(&self, other: &MemoryDescriptor) -> bool
fn eq(&self, other: &MemoryDescriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.