pub struct ReservedRegions { /* private fields */ }Expand description
Reserved memory regions information
Represents a collection of memory regions that are reserved and should not be used for general memory operations. These regions typically contain bootloader code, configuration data, or other critical system information that must be preserved during memory operations.
Implementations§
Source§impl ReservedRegions
impl ReservedRegions
Sourcepub fn parse(data: &[u32]) -> Self
pub fn parse(data: &[u32]) -> Self
Parses reserved regions data from u32 array
Takes an array of u32 values where each pair represents a reserved region with start and end addresses. The array length must be even as each region requires exactly two values.
§Arguments
data- Array of u32 values containing (start, end) pairs
§Returns
A new ReservedRegions instance containing the parsed regions
§Panics
Panics if the data array length is odd, as this indicates malformed data
Trait Implementations§
Source§impl Clone for ReservedRegions
impl Clone for ReservedRegions
Source§fn clone(&self) -> ReservedRegions
fn clone(&self) -> ReservedRegions
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 ReservedRegions
impl Debug for ReservedRegions
Auto Trait Implementations§
impl Freeze for ReservedRegions
impl RefUnwindSafe for ReservedRegions
impl Send for ReservedRegions
impl Sync for ReservedRegions
impl Unpin for ReservedRegions
impl UnwindSafe for ReservedRegions
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