pub struct UncheckedMmap(/* private fields */);Available on crate feature
full only.Expand description
A basic map of virtual to physical memory, with no out-of-bounds checking.
Most uses should instead use Mmap, unless a guaranteed amount of or location
in virtual memory is required.
Trait Implementations§
Source§impl Clone for UncheckedMmap
impl Clone for UncheckedMmap
Source§fn clone(&self) -> UncheckedMmap
fn clone(&self) -> UncheckedMmap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UncheckedMmap
Source§impl Debug for UncheckedMmap
impl Debug for UncheckedMmap
Source§impl Default for UncheckedMmap
impl Default for UncheckedMmap
Source§fn default() -> UncheckedMmap
fn default() -> UncheckedMmap
Returns the “default value” for a type. Read more
Source§impl Mappable for UncheckedMmap
impl Mappable for UncheckedMmap
Source§fn virtual_size(&self, frame_count: usize) -> NonZero<usize>
fn virtual_size(&self, frame_count: usize) -> NonZero<usize>
The number of pages required to create a mapping with
frame_count frames.Source§fn base_virtual_offset(&self) -> isize
fn base_virtual_offset(&self) -> isize
The number of pages to offset the physical memory into the allocated virtual memory.
Auto Trait Implementations§
impl Freeze for UncheckedMmap
impl RefUnwindSafe for UncheckedMmap
impl Send for UncheckedMmap
impl Sync for UncheckedMmap
impl Unpin for UncheckedMmap
impl UnsafeUnpin for UncheckedMmap
impl UnwindSafe for UncheckedMmap
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)