[][src]Trait gchemol::io::prelude::ToFile

pub trait ToFile {
    fn to_file<P>(&self, path: P) -> Result<(), Error>
    where
        P: AsRef<Path>
; }

Required methods

fn to_file<P>(&self, path: P) -> Result<(), Error> where
    P: AsRef<Path>, 

Write string content to an external file.

Note: Replaces the current file content if the file already exists.

Loading content...

Implementations on Foreign Types

impl ToFile for str[src]

Loading content...

Implementors

impl ToFile for Molecule[src]

fn to_file<T>(&self, path: T) -> Result<(), Error> where
    T: AsRef<Path>, 
[src]

Save molecule to an external file

Loading content...