Skip to main content

generate_from_functions

Function generate_from_functions 

Source
pub fn generate_from_functions(
    functions: &EnvFunctions,
    module: &str,
    options: &Options,
) -> Result<String, Error>
Expand description

Generates the Rust module module of an environment given by its functions, as generate does for an Environment.

ยงErrors

Returns an error if the functions do not have the form of EnvFunctions, or use element types or operations that cannot be generated.