[][src]Trait gchemol_readwrite::prelude::StringIO

pub trait StringIO {
    fn format_as<S: AsRef<str>>(&self, fmt: S) -> Result<String>;
fn parse_from<R: Read + Seek, S: AsRef<str>>(
        s: R,
        fmt: S
    ) -> Result<Molecule>; fn from_str<S: AsRef<str>>(s: &str, fmt: S) -> Result<Molecule> { ... } }

Required methods

fn format_as<S: AsRef<str>>(&self, fmt: S) -> Result<String>

Format molecule as string in specific fmt.

fn parse_from<R: Read + Seek, S: AsRef<str>>(s: R, fmt: S) -> Result<Molecule>

Parse molecule from string in specific fmt.

Loading content...

Provided methods

fn from_str<S: AsRef<str>>(s: &str, fmt: S) -> Result<Molecule>

Loading content...

Implementations on Foreign Types

impl StringIO for Molecule[src]

fn format_as<S: AsRef<str>>(&self, fmt: S) -> Result<String>[src]

Format molecule as string in specific molecular file format. Return error if cannot format molecule in fmt.

fn parse_from<R: Read + Seek, S: AsRef<str>>(s: R, fmt: S) -> Result<Molecule>[src]

construct molecule from string in specific molecular file format.

Loading content...

Implementors

Loading content...