Struct multiboot::information::MemoryEntry
source · [−]#[repr(C, packed)]pub struct MemoryEntry { /* private fields */ }
Expand description
Multiboot format of the MMAP buffer.
Note that size is defined to be at -4 bytes in multiboot.
Implementations
sourceimpl MemoryEntry
impl MemoryEntry
sourcepub fn new(base_addr: PAddr, length: PAddr, ty: MemoryType) -> Self
pub fn new(base_addr: PAddr, length: PAddr, ty: MemoryType) -> Self
Create a new entry from the given data.
Note that this will always create a struct that has a size of 20 bytes.
sourcepub fn base_address(&self) -> PAddr
pub fn base_address(&self) -> PAddr
Get base of memory region.
sourcepub fn memory_type(&self) -> MemoryType
pub fn memory_type(&self) -> MemoryType
Is the region type valid RAM?
Trait Implementations
sourceimpl Clone for MemoryEntry
impl Clone for MemoryEntry
sourcefn clone(&self) -> MemoryEntry
fn clone(&self) -> MemoryEntry
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 MemoryEntry
impl Debug for MemoryEntry
sourceimpl Default for MemoryEntry
impl Default for MemoryEntry
impl Copy for MemoryEntry
Auto Trait Implementations
impl RefUnwindSafe for MemoryEntry
impl Send for MemoryEntry
impl Sync for MemoryEntry
impl Unpin for MemoryEntry
impl UnwindSafe for MemoryEntry
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