struct ReadOnlyMmap {
ptr: *const u8,
len: usize,
}Expand description
Minimal read-only MAP_SHARED mmap wrapper built on libc. Keeps the
feature flag self-contained (no external memmap2 crate required in
the kimchi-stubs vendored registry) and matches the subset of behavior
we need: open file, map read-only, munmap on drop.
Fields§
§ptr: *const u8§len: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for ReadOnlyMmap
impl Freeze for ReadOnlyMmap
impl Move for ReadOnlyMmap
impl RefUnwindSafe for ReadOnlyMmap
impl Unpin for ReadOnlyMmap
impl UnsafeUnpin for ReadOnlyMmap
impl UnwindSafe for ReadOnlyMmap
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