pub struct Mapping { /* private fields */ }Expand description
A mapped memory region
Just about the only interesting thing to do with this is to call .as_bytes() on it.
A Drop trait is implemented which calls munmap() when the Mapping goes out of scope.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Mapping
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