Function str_to_rust_code

Source
pub fn str_to_rust_code<'a>(
    root_nodes: &'a [XmlNode],
    imports: &str,
    component_map: &'a mut XmlComponentMap,
) -> Result<String, CompileError>
Expand description

Parses an XML string and returns a String, which contains the Rust source code (i.e. it compiles the XML to valid Rust)