Skip to main content

convert_str

Function convert_str 

Source
pub fn convert_str(
    text: &str,
    to: TargetFormat,
    format: &str,
) -> Result<Conversion, Error>
Expand description

Convert in-memory case text of the named format (see target_format_from_name) to to.

The in-memory sibling of convert_file, shared by the bindings: parses text once and writes the resulting Network to to, with no file staging in between. Warnings are read side first, as in convert_file.

ยงErrors

As parse_str.