pub struct MmapSlice { /* private fields */ }Expand description
A wrapper that allows sharing mmap data with Cursor. Implements AsRef<u8> so it can be used as Cursor’s inner type.
This type is only available when the mmap feature is enabled.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MmapSlice
impl RefUnwindSafe for MmapSlice
impl Send for MmapSlice
impl Sync for MmapSlice
impl Unpin for MmapSlice
impl UnwindSafe for MmapSlice
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