Struct multiboot2::MemoryArea
source · #[repr(C)]pub struct MemoryArea { /* private fields */ }
Expand description
A descriptor for an available or taken area of physical memory.
Implementations§
source§impl MemoryArea
impl MemoryArea
sourcepub fn new(
base_addr: u64,
length: u64,
typ: impl Into<MemoryAreaTypeId>,
) -> Self
pub fn new( base_addr: u64, length: u64, typ: impl Into<MemoryAreaTypeId>, ) -> Self
Create a new MemoryArea.
sourcepub fn start_address(&self) -> u64
pub fn start_address(&self) -> u64
The start address of the memory region.
sourcepub fn end_address(&self) -> u64
pub fn end_address(&self) -> u64
The end address of the memory region.
sourcepub fn typ(&self) -> MemoryAreaTypeId
pub fn typ(&self) -> MemoryAreaTypeId
The type of the memory region.
Trait Implementations§
source§impl Clone for MemoryArea
impl Clone for MemoryArea
source§fn clone(&self) -> MemoryArea
fn clone(&self) -> MemoryArea
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 MemoryArea
impl Debug for MemoryArea
source§impl Hash for MemoryArea
impl Hash for MemoryArea
source§impl Ord for MemoryArea
impl Ord for MemoryArea
source§impl PartialEq for MemoryArea
impl PartialEq for MemoryArea
source§impl PartialOrd for MemoryArea
impl PartialOrd for MemoryArea
impl Copy for MemoryArea
impl Eq for MemoryArea
impl StructuralPartialEq for MemoryArea
Auto Trait Implementations§
impl Freeze for MemoryArea
impl RefUnwindSafe for MemoryArea
impl Send for MemoryArea
impl Sync for MemoryArea
impl Unpin for MemoryArea
impl UnwindSafe for MemoryArea
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more