[][src]Trait gchemol::prelude::FromFile

pub trait FromFile {
    fn from_file<P>(path: P) -> Result<Self, Error>
    where
        P: AsRef<Path>
; }

Required methods

fn from_file<P>(path: P) -> Result<Self, Error> where
    P: AsRef<Path>, 

Return content of text file in string.

Do not use this to read large file.

Loading content...

Implementations on Foreign Types

impl FromFile for String[src]

Loading content...

Implementors

impl FromFile for Molecule[src]

fn from_file<P>(path: P) -> Result<Molecule, Error> where
    P: AsRef<Path>, 
[src]

Construct molecule from external text file

Loading content...