Struct bootloader::boot_info::MemoryRegion
source · #[repr(C)]pub struct MemoryRegion {
pub start: u64,
pub end: u64,
pub kind: MemoryRegionKind,
}
Expand description
Represent a physical memory region.
Fields§
§start: u64
The physical start address of the region.
end: u64
The physical end address (exclusive) of the region.
kind: MemoryRegionKind
The memory type of the memory region.
Only Usable
regions can be freely used.
Implementations§
source§impl MemoryRegion
impl MemoryRegion
Trait Implementations§
source§impl Clone for MemoryRegion
impl Clone for MemoryRegion
source§fn clone(&self) -> MemoryRegion
fn clone(&self) -> MemoryRegion
Returns a copy 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 MemoryRegion
impl Debug for MemoryRegion
source§impl PartialEq for MemoryRegion
impl PartialEq for MemoryRegion
source§fn eq(&self, other: &MemoryRegion) -> bool
fn eq(&self, other: &MemoryRegion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MemoryRegion
impl Eq for MemoryRegion
impl StructuralPartialEq for MemoryRegion
Auto Trait Implementations§
impl Freeze for MemoryRegion
impl RefUnwindSafe for MemoryRegion
impl Send for MemoryRegion
impl Sync for MemoryRegion
impl Unpin for MemoryRegion
impl UnwindSafe for MemoryRegion
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