[−][src]Trait gchemol::prelude::StringIO
Required methods
fn format_as<S>(&self, fmt: S) -> Result<String, Error> where
S: AsRef<str>,
S: AsRef<str>,
Format molecule as string in specific fmt
.
fn parse_from<R, S>(s: R, fmt: S) -> Result<Molecule, Error> where
R: Read + Seek,
S: AsRef<str>,
R: Read + Seek,
S: AsRef<str>,
Parse molecule from string in specific fmt
.
Provided methods
Loading content...Implementors
impl StringIO for Molecule
[src]
fn format_as<S>(&self, fmt: S) -> Result<String, Error> where
S: AsRef<str>,
[src]
S: AsRef<str>,
Format molecule as string in specific molecular file format. Return
error if cannot format molecule in fmt
.
fn parse_from<R, S>(s: R, fmt: S) -> Result<Molecule, Error> where
R: Read + Seek,
S: AsRef<str>,
[src]
R: Read + Seek,
S: AsRef<str>,
construct molecule from string in specific molecular file format.