Struct os_bootinfo::MemoryRegion
[−]
[src]
#[repr(C)]pub struct MemoryRegion { pub start_addr: PhysAddr, pub len: u64, pub region_type: MemoryRegionType, }
Fields
start_addr: PhysAddr
len: u64
region_type: MemoryRegionType
Methods
impl MemoryRegion
[src]
pub fn empty() -> Self
[src]
pub fn start_addr(&self) -> PhysAddr
[src]
pub fn end_addr(&self) -> PhysAddr
[src]
Trait Implementations
impl Debug for MemoryRegion
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for MemoryRegion
[src]
fn clone(&self) -> MemoryRegion
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for MemoryRegion
[src]
impl PartialEq for MemoryRegion
[src]
fn eq(&self, __arg_0: &MemoryRegion) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MemoryRegion) -> bool
[src]
This method tests for !=
.
impl Eq for MemoryRegion
[src]
impl From<E820MemoryRegion> for MemoryRegion
[src]
fn from(region: E820MemoryRegion) -> MemoryRegion
[src]
Performs the conversion.