pub trait File: FsNode + ByteReader + ByteWriter + KnownLength {
// Required method
fn as_mapping(&self) -> Result<&MappedPages, &'static str>;
}
Required Methods§
sourcefn as_mapping(&self) -> Result<&MappedPages, &'static str>
fn as_mapping(&self) -> Result<&MappedPages, &'static str>
Returns a view of this file as an immutable memory-mapped region.