pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Tree> {
    fs::File::open(&path)
        .map(read)
        .map_err(|e| Error::OpenFile {
            filename: path.as_ref().to_owned(),
            source: e,
        })?
}
/// Reads a tree from a file
Reads a tree from a file
Reads a tree from a file
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Tree> {
    fs::File::open(&path)
        .map(read)
        .map_err(|e| Error::OpenFile {
            filename: path.as_ref().to_owned(),
            source: e,
        })?
}
pub fn from_file < P : AsRef < Path > > ( path : P ) -> Result < Tree > { fs :: File :: open ( & path ) . map ( read ) . map_err ( | e | Error :: OpenFile { filename : path . as_ref ( ) . to_owned ( ) , source : e , } ) ? }
Reads a tree from a file
Reads a tree from a file
path
P
path
P