Module mun_runtime::runtime

source ·
Expand description

Exposes the Mun runtime using the C ABI.

Structs

Definition of an external function that is callable from Mun.
A C-style handle to a runtime.
Options required to construct a [RuntimeHandle] through mun_runtime_create

Functions

Constructs a new runtime that loads the library at library_path and its dependencies. If successful, the runtime handle is set, otherwise a non-zero error handle is returned.
Destructs the runtime corresponding to handle.
Retrieves the FunctionDefinition for fn_name from the runtime. If successful, has_fn_info and fn_info are set, otherwise a non-zero error handle is returned.
Retrieves the type information corresponding to the specified type_id from the runtime. If successful, has_type_info and type_info are set, otherwise a non-zero error handle is returned.
Retrieves the type information corresponding to the specified type_name from the runtime. If successful, has_type_info and type_info are set, otherwise a non-zero error handle is returned.
Updates the runtime corresponding to handle. If successful, updated is set, otherwise a non-zero error handle is returned.