pub struct Reservation {
pub address: u64,
pub length: u64,
}Expand description
A memory reservation block for reserving physical memory.
Fields§
§address: u64§length: u64Implementations§
Source§impl Reservation
Create a new memory reservation block with physical address and length
impl Reservation
Create a new memory reservation block with physical address and length
Example:
use devicetree_tool::Reservation;
let resv = Reservation::new(0, 0x1000);
assert_eq!(format!("{}", resv), "/memreserve/ 0x0000000000000000 0x0000000000001000;");Trait Implementations§
Source§impl Clone for Reservation
impl Clone for Reservation
Source§fn clone(&self) -> Reservation
fn clone(&self) -> Reservation
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 Display for Reservation
impl Display for Reservation
impl Copy for Reservation
Auto Trait Implementations§
impl Freeze for Reservation
impl RefUnwindSafe for Reservation
impl Send for Reservation
impl Sync for Reservation
impl Unpin for Reservation
impl UnwindSafe for Reservation
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