Struct multiboot2::MemoryArea
source · #[repr(C)]pub struct MemoryArea { /* private fields */ }
Expand description
A memory area entry descriptor.
Implementations§
source§impl MemoryArea
impl MemoryArea
sourcepub fn new(base_addr: u64, length: u64, typ: MemoryAreaType) -> Self
pub fn new(base_addr: u64, length: u64, typ: MemoryAreaType) -> Self
Create a new MemoryArea.
sourcepub fn start_address(&self) -> u64
pub fn start_address(&self) -> u64
The start address of the memory region.
sourcepub fn end_address(&self) -> u64
pub fn end_address(&self) -> u64
The end address of the memory region.
sourcepub fn typ(&self) -> MemoryAreaType
pub fn typ(&self) -> MemoryAreaType
The type of the memory region.
Trait Implementations§
source§impl Clone for MemoryArea
impl Clone for MemoryArea
source§fn clone(&self) -> MemoryArea
fn clone(&self) -> MemoryArea
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 MemoryArea
impl Debug for MemoryArea
source§impl Hash for MemoryArea
impl Hash for MemoryArea
source§impl Ord for MemoryArea
impl Ord for MemoryArea
source§impl PartialEq for MemoryArea
impl PartialEq for MemoryArea
source§impl PartialOrd for MemoryArea
impl PartialOrd for MemoryArea
impl Copy for MemoryArea
impl Eq for MemoryArea
impl StructuralEq for MemoryArea
impl StructuralPartialEq for MemoryArea
Auto Trait Implementations§
impl RefUnwindSafe for MemoryArea
impl Send for MemoryArea
impl Sync for MemoryArea
impl Unpin for MemoryArea
impl UnwindSafe for MemoryArea
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