pub struct Mapping { /* private fields */ }
Expand description
Mapping between the virtual and physical address space
Implementations§
Source§impl Mapping
impl Mapping
Sourcepub unsafe fn new(physical_addr: usize, len: usize) -> Result<Mapping>
pub unsafe fn new(physical_addr: usize, len: usize) -> Result<Mapping>
Create a new mapping of len
bytes, starting at physical_addr
Sourcepub fn copy_into_slice(&self, dst: &mut [u8])
pub fn copy_into_slice(&self, dst: &mut [u8])
Copy a slice of bytes from the physical address space into dst
Sourcepub fn copy_from_slice(&mut self, src: &[u8])
pub fn copy_from_slice(&mut self, src: &[u8])
Copy a slice of bytes from src
to the physical address space
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl !Send for Mapping
impl !Sync for Mapping
impl Unpin for Mapping
impl UnwindSafe for Mapping
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