Skip to main content

generate_py_module

Function generate_py_module 

Source
pub fn generate_py_module(
    unit: &CompilationUnit,
    structs_and_enums: &[Type],
) -> PyModule
Available on crate feature python only.
Expand description

Build the Python API description from the lowered LLR plus the source-level structs_and_enums, which the LLR does not carry. Both are available without the object-tree Document, so the interpreter can generate the API from a CompilationResult alone.