pub struct FileMmap { /* private fields */ }
Implementations
sourceimpl FileMmap
impl FileMmap
pub fn new(path: &str, initial_size: u64) -> Result<FileMmap, Error>
pub fn len(&self) -> u64
pub fn as_ptr(&self) -> *const i64
pub fn offset(&self, addr: isize) -> *const i8
pub fn slice(&self, addr: isize, len: usize) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn set_len(&mut self, len: u64) -> Result<()>
pub fn append(&mut self, bytes: &[u8]) -> Option<u64>
pub fn write(&mut self, addr: u64, bytes: &[u8])
pub fn write_0(&mut self, addr: isize, len: u64)
Auto Trait Implementations
impl RefUnwindSafe for FileMmap
impl Send for FileMmap
impl Sync for FileMmap
impl Unpin for FileMmap
impl UnwindSafe for FileMmap
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more