pub trait StringIO {
// Required methods
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>;
// Provided method
fn from_str<S: AsRef<str>>(s: &str, fmt: S) -> Result<Molecule> { ... }
}Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.