Struct pelite::FileMap [−][src]
pub struct FileMap { /* fields omitted */ }
Memory mapped file.
Methods
impl FileMap
[src]
impl FileMap
pub fn open<P: AsRef<Path> + ?Sized>(path: &P) -> Result<FileMap>
[src]
pub fn open<P: AsRef<Path> + ?Sized>(path: &P) -> Result<FileMap>
Maps the whole file into memory.
Trait Implementations
impl AsRawHandle for FileMap
[src]
impl AsRawHandle for FileMap
fn as_raw_handle(&self) -> RawHandle
[src]
fn as_raw_handle(&self) -> RawHandle
Extracts the raw handle, without taking any ownership.
impl AsRef<[u8]> for FileMap
[src]
impl AsRef<[u8]> for FileMap
impl Drop for FileMap
[src]
impl Drop for FileMap