Skip to main content

Crate xur_runtime

Crate xur_runtime 

Source
Expand description

Running Xur programs.

Re-exports§

pub use reflect::AdtInfo;
pub use reflect::FieldInfo;
pub use reflect::FnInfo;
pub use reflect::TypeRef;
pub use registry::Context;
pub use registry::Registry;

Modules§

convert
Converting between Rust values and Xur values, driven by facet shapes.
reflect
What native code can learn about Xur types at runtime, for std::reflect.
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.
MapKey
A value used as a map key. Only hashable types (str, int, bool) are accepted; unhashable ones (list, map, etc.) will panic if used as keys.
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
Named fields: a value of a Rust struct or enum converted to Xur, or a record read with a layout.
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