Skip to main content

Crate xur_runtime

Crate xur_runtime 

Source
Expand description

Running Xur programs.

Re-exports§

pub use registry::Context;
pub use registry::Registry;

Modules§

convert
Converting between Rust values and Xur values, driven by facet shapes.
registry
Registering Rust functions and types as Xur modules.

Structs§

Adt
An instance of a struct, or of an enum variant, defined in Xur.
Closure
A closure value.
LangItems
The prelude’s Option and Result variants, which Rust’s Option and Result convert to and from.
NativeObject
A value of a registered Rust type. Methods registered as taking &mut self change it in place, and every Xur value referring to it sees the change.
Range
Record
A value of an unregistered Rust struct, converted to named fields.
RuntimeError
An error raised while running a program, such as a type mismatch that could only be detected at runtime.
ValueIter
A shared iterator over values.

Enums§

BuiltinType
The kinds of built-in value that have methods, like list.push(x).
Value

Functions§

lock
Locks mutex. A panic while it was held doesn’t stop the program from using the value, as Xur values have no invariants a panic could break.

Type Aliases§

RunResult