#[repr(C, packed(1))]pub struct MemoryEntry {
pub base_addr: u64,
pub length: u64,
pub mem_type: MemoryType,
}Expand description
The memory entry.
Fields§
§base_addr: u64The memory region start address
length: u64The memory region length
mem_type: MemoryTypeThe type of this memory region
Trait Implementations§
Source§impl Clone for MemoryEntry
impl Clone for MemoryEntry
Source§fn clone(&self) -> MemoryEntry
fn clone(&self) -> MemoryEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MemoryEntry
impl Debug for MemoryEntry
Source§impl PartialEq for MemoryEntry
impl PartialEq for MemoryEntry
Source§fn eq(&self, other: &MemoryEntry) -> bool
fn eq(&self, other: &MemoryEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MemoryEntry
impl Eq for MemoryEntry
impl StructuralPartialEq for MemoryEntry
Auto Trait Implementations§
impl Freeze for MemoryEntry
impl RefUnwindSafe for MemoryEntry
impl Send for MemoryEntry
impl Sync for MemoryEntry
impl Unpin for MemoryEntry
impl UnsafeUnpin for MemoryEntry
impl UnwindSafe for MemoryEntry
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