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

Required Methods§

source

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

Write string content to an external file.

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToFile for str

source§

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

source§

impl ToFile for Molecule

source§

fn to_file<T: AsRef<Path>>(&self, path: T) -> Result<()>

Save molecule to an external file

Implementors§