[][src]Crate mun_runtime

The Mun Runtime C API

The Mun Runtime C API exposes runtime functionality using the C ABI. This can be used to integrate the Mun Runtime into other languages that allow interoperability with C.

Modules

error

Exposes error reporting using the C ABI.

gc

Exposes Mun garbage collection.

hub

A statically-allocated, concurrent data structure for storage of Rust objects that are utilized through Mun Runtime C API calls.

Structs

GcPtr

A GcPtr is what you interact with outside of the allocator. It is a pointer to a piece of memory that points to the actual data stored in memory.

RuntimeHandle

A C-style handle to a runtime.

RuntimeOptions

Options required to construct a RuntimeHandle through mun_runtime_create

Traits

TypedHandle

A type to uniquely index typed collections.

Functions

mun_destroy_string

Deallocates a string that was allocated by the runtime.

mun_runtime_create

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.

mun_runtime_destroy

Destructs the runtime corresponding to handle.

mun_runtime_get_function_definition

Retrieves the [FunctionDefinition] for fn_name from the runtime corresponding to handle. If successful, has_fn_info and fn_info are set, otherwise a non-zero error handle is returned.

mun_runtime_update

Updates the runtime corresponding to handle. If successful, updated is set, otherwise a non-zero error handle is returned.