Struct tartan_uefi::MemoryMap
source · pub struct MemoryMap {
pub raw_map: Vec<u8>,
pub key: usize,
pub descriptor_size: usize,
pub descriptor_version: u32,
}
Fields§
§raw_map: Vec<u8>
§key: usize
§descriptor_size: usize
§descriptor_version: u32
Implementations§
source§impl MemoryMap
impl MemoryMap
pub const MIN_VERSION: u32 = 1u32
pub fn new() -> Self
pub fn verify(&self)
pub fn verify_version(&self)
pub fn verify_descriptor_size(&self)
pub fn verify_map(&self)
sourcepub fn iter(&self) -> impl Iterator<Item = &MemoryDescriptor>
pub fn iter(&self) -> impl Iterator<Item = &MemoryDescriptor>
Iterate over memory descriptors contained in the map.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryMap
impl RefUnwindSafe for MemoryMap
impl Send for MemoryMap
impl Sync for MemoryMap
impl Unpin for MemoryMap
impl UnwindSafe for MemoryMap
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