Struct multiboot2::MemoryArea
source · #[repr(C)]pub struct MemoryArea { /* private fields */ }
Expand description
A memory area entry descriptor.
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 · 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 MemoryArea
impl Debug for MemoryArea
source§impl Hash for MemoryArea
impl Hash for MemoryArea
source§impl Ord for MemoryArea
impl Ord for MemoryArea
source§fn cmp(&self, other: &MemoryArea) -> Ordering
fn cmp(&self, other: &MemoryArea) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MemoryArea
impl PartialEq for MemoryArea
source§fn eq(&self, other: &MemoryArea) -> bool
fn eq(&self, other: &MemoryArea) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MemoryArea
impl PartialOrd for MemoryArea
source§fn partial_cmp(&self, other: &MemoryArea) -> Option<Ordering>
fn partial_cmp(&self, other: &MemoryArea) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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§
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