Skip to main content

generate_from_str

Function generate_from_str 

Source
pub fn generate_from_str(
    source: &str,
    filename: &str,
) -> Result<String, Box<dyn Error>>
Expand description

Parse, validate, and generate code from source text. Returns the generated Rust code as a String.

ยงErrors

Returns parse or validation errors.