#[repr(C)]pub struct EfiMemoryDescriptor {
pub typ: EfiMemoryType,
pub _pad: u32,
pub physical_start: u64,
pub virtual_start: u64,
pub number_of_pages: u64,
pub attribute: u64,
}Expand description
From UEFI spec 7.2 — EFI_MEMORY_DESCRIPTOR
Fields§
§typ: EfiMemoryType§_pad: u32§physical_start: u64§virtual_start: u64§number_of_pages: u64§attribute: u64Trait Implementations§
Source§impl Clone for EfiMemoryDescriptor
impl Clone for EfiMemoryDescriptor
Source§fn clone(&self) -> EfiMemoryDescriptor
fn clone(&self) -> EfiMemoryDescriptor
Returns a duplicate 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 EfiMemoryDescriptor
impl Debug for EfiMemoryDescriptor
Source§impl IntoBytes for EfiMemoryDescriptor
impl IntoBytes for EfiMemoryDescriptor
Source§impl KnownLayout for EfiMemoryDescriptorwhere
u64: KnownLayout,
impl KnownLayout for EfiMemoryDescriptorwhere
u64: KnownLayout,
Source§type PointerMetadata = <u64 as KnownLayout>::PointerMetadata
type PointerMetadata = <u64 as KnownLayout>::PointerMetadata
The type of metadata stored in a pointer to
Self. Read more§fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
Computes the size of an object of type
Self with the given pointer
metadata. Read moreimpl Copy for EfiMemoryDescriptor
impl Immutable for EfiMemoryDescriptor
Auto Trait Implementations§
impl Freeze for EfiMemoryDescriptor
impl RefUnwindSafe for EfiMemoryDescriptor
impl Send for EfiMemoryDescriptor
impl Sync for EfiMemoryDescriptor
impl Unpin for EfiMemoryDescriptor
impl UnwindSafe for EfiMemoryDescriptor
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