pub struct UsedMemorySlice {
pub start: u64,
pub end: u64,
}
Expand description
A slice of memory that is used by the bootloader and needs to be reserved in the kernel
Fields§
§start: u64
the physical start of the slice
end: u64
The physical end address (exclusive) of the region.
Implementations§
Source§impl UsedMemorySlice
impl UsedMemorySlice
Sourcepub fn new_from_len(start: u64, len: u64) -> Self
pub fn new_from_len(start: u64, len: u64) -> Self
Creates a new slice
Trait Implementations§
Source§impl Clone for UsedMemorySlice
impl Clone for UsedMemorySlice
Source§fn clone(&self) -> UsedMemorySlice
fn clone(&self) -> UsedMemorySlice
Returns a copy 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 UsedMemorySlice
impl Debug for UsedMemorySlice
impl Copy for UsedMemorySlice
Auto Trait Implementations§
impl Freeze for UsedMemorySlice
impl RefUnwindSafe for UsedMemorySlice
impl Send for UsedMemorySlice
impl Sync for UsedMemorySlice
impl Unpin for UsedMemorySlice
impl UnwindSafe for UsedMemorySlice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)