Struct multiboot2::EFIMemoryDesc
source · #[repr(C)]pub struct EFIMemoryDesc {
pub ty: MemoryType,
pub phys_start: u64,
pub virt_start: u64,
pub page_count: u64,
pub att: MemoryAttribute,
}
Expand description
A structure describing a region of memory.
Fields§
§ty: MemoryType
Type of memory occupying this range.
phys_start: u64
Starting physical address.
virt_start: u64
Starting virtual address.
page_count: u64
Number of 4 KiB pages contained in this range.
att: MemoryAttribute
The capability attributes of this memory range.
Implementations§
Trait Implementations§
source§impl Clone for MemoryDescriptor
impl Clone for MemoryDescriptor
source§fn clone(&self) -> MemoryDescriptor
fn clone(&self) -> MemoryDescriptor
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MemoryDescriptor
impl Debug for MemoryDescriptor
source§impl Default for MemoryDescriptor
impl Default for MemoryDescriptor
source§fn default() -> MemoryDescriptor
fn default() -> MemoryDescriptor
Returns the “default value” for a type. Read more
source§impl Hash for MemoryDescriptor
impl Hash for MemoryDescriptor
source§impl Ord for MemoryDescriptor
impl Ord for MemoryDescriptor
source§impl PartialEq for MemoryDescriptor
impl PartialEq for MemoryDescriptor
source§fn eq(&self, other: &MemoryDescriptor) -> bool
fn eq(&self, other: &MemoryDescriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MemoryDescriptor
impl PartialOrd for MemoryDescriptor
impl Copy for MemoryDescriptor
impl Eq for MemoryDescriptor
impl StructuralEq for MemoryDescriptor
impl StructuralPartialEq for MemoryDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for MemoryDescriptor
impl Send for MemoryDescriptor
impl Sync for MemoryDescriptor
impl Unpin for MemoryDescriptor
impl UnwindSafe for MemoryDescriptor
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
source§fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
Returns the amount of items in the dynamically sized portion of the
DST. Note that this is not the amount of bytes. So if the dynamically
sized portion is 16 bytes in size and each element is 4 bytes big, then
this function must return 4.
source§unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
Creates a reference to a (dynamically sized) tag type in a safe way.
DST tags need to implement a proper
Self::dst_size
implementation. Read more