Skip to main content

generate

Function generate 

Source
pub fn generate<E: Environment>(
    env: &E,
    module: &str,
    options: &Options,
) -> Result<String, Error>
Expand description

Generates the Rust module module of env compiled ahead of time with its default parameters: a unit struct Env that implements CompiledEnv, with State and Obs structs. The code refers to the crates ruxla_env, ruxla_codegen, and ruxla_ir.

ยงErrors

Returns an error if the environment uses element types or operations that cannot be generated.