pub fn from_path<P: AsRef<Path>>(path: P) -> io::Result<Self> {
        let f = std::fs::File::open(path)?;
        let len = f.metadata()?.len() as usize;
        Self::from_readonly_file(&f, len)
    }
/// Creates a new mapping for a file at specified `path`.
Creates a new mapping for a file at specified `path`.
Creates a new mapping for a file at specified ` path ` .
pub fn from_path<P: AsRef<Path>>(path: P) -> io::Result<Self> {
        let f = std::fs::File::open(path)?;
        let len = f.metadata()?.len() as usize;
        Self::from_readonly_file(&f, len)
    }
pub fn from_path < P : AsRef < Path > > ( path : P ) -> io :: Result < Self > { let f = std :: fs :: File :: open ( path ) ? ; let len = f . metadata ( ) ? . len ( ) as usize ; Self :: from_readonly_file ( & f , len ) }
Creates a new mapping for a file at specified `path`.
Creates a new mapping for a file at specified ` path ` .
path
P
path
P