#[repr(C)]pub struct MemoryMapEntry {
pub typ: MemoryType,
pub start: PAddr,
pub size: Bytes,
}
Fields§
§typ: MemoryType
§start: PAddr
§size: Bytes
Implementations§
Source§impl MemoryMapEntry
impl MemoryMapEntry
pub fn new(typ: MemoryType, start: PAddr, size: Bytes) -> MemoryMapEntry
pub fn address_range(&self) -> Range<PAddr>
pub fn frame_range(&self) -> Range<Frame>
Trait Implementations§
Source§impl Clone for MemoryMapEntry
impl Clone for MemoryMapEntry
Source§fn clone(&self) -> MemoryMapEntry
fn clone(&self) -> MemoryMapEntry
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 MemoryMapEntry
impl Debug for MemoryMapEntry
Source§impl Default for MemoryMapEntry
impl Default for MemoryMapEntry
Source§fn default() -> MemoryMapEntry
fn default() -> MemoryMapEntry
Returns the “default value” for a type. Read more
impl Copy for MemoryMapEntry
Auto Trait Implementations§
impl Freeze for MemoryMapEntry
impl RefUnwindSafe for MemoryMapEntry
impl Send for MemoryMapEntry
impl Sync for MemoryMapEntry
impl Unpin for MemoryMapEntry
impl UnwindSafe for MemoryMapEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)