pub fn write_string(
module: &Module,
info: &ModuleInfo,
config: Config,
) -> Result<String, Error>Expand description
Converts module to a string of Rust code.
This is a convenience wrapper around Writer::write().
ยงErrors
Returns an error if the module cannot be represented as Rust.