Struct stivale_boot::v2::StivaleMemoryMapEntry
source · [−]#[repr(C)]pub struct StivaleMemoryMapEntry {
pub base: u64,
pub length: u64,
pub entry_type: StivaleMemoryMapEntryType,
/* private fields */
}
Fields
base: u64
Physical address of base of the memory section.
length: u64
Length of this memory section.
entry_type: StivaleMemoryMapEntryType
The type of this memory map entry.
Implementations
sourceimpl StivaleMemoryMapEntry
impl StivaleMemoryMapEntry
sourcepub fn end_address(&self) -> u64
pub fn end_address(&self) -> u64
Returns the end address of this memory region.
sourcepub fn entry_type(&self) -> StivaleMemoryMapEntryType
pub fn entry_type(&self) -> StivaleMemoryMapEntryType
Returns the entry type of this memory region. External function is required as reference the entry_type packed field is not aligned.
Trait Implementations
sourceimpl Clone for StivaleMemoryMapEntry
impl Clone for StivaleMemoryMapEntry
sourcefn clone(&self) -> StivaleMemoryMapEntry
fn clone(&self) -> StivaleMemoryMapEntry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StivaleMemoryMapEntry
impl Debug for StivaleMemoryMapEntry
impl Copy for StivaleMemoryMapEntry
Auto Trait Implementations
impl RefUnwindSafe for StivaleMemoryMapEntry
impl Send for StivaleMemoryMapEntry
impl Sync for StivaleMemoryMapEntry
impl Unpin for StivaleMemoryMapEntry
impl UnwindSafe for StivaleMemoryMapEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more