Crate mica_hl

Crate mica_hl 

Source
Expand description

Mica is an embeddable scripting language for Rust.

This crate exposes a safe, high-level API akin to Rhai.

Re-exports§

pub use mica_language as language;

Modules§

builtin_traits
Types for representing implementations of built-in traits.
ffvariants
Variants of ForeignFunction.

Structs§

Arguments
Arguments passed to a varargs function.
DebugOptions
Options for debugging the language implementation.
Engine
Start here! An execution engine. Contains information about things like globals, registered types, etc.
Fiber
A fiber represents an independent, pausable thread of code execution.
Gc
An automatically managed, safe reference to GC memory.
GlobalId
An ID unique to an engine, identifying a global variable.
MethodId
An ID unique to an engine, identifying a method signature.
Object
Represents a custom-typed value stored inside a VM.
RawSelf
Wrapper struct for marking functions that use the with-raw-self calling convention.
RawValue
An unsafe value used internally in the VM.
Script
A script pre-compiled into bytecode.
TraitBuilder
Allows you to build traits programatically from Rust code.
Type
A type. This is used to represent user-defined Rust types in the VM (but not their instances).
TypeBuilder
A builder that allows for binding APIs with user-defined types.

Enums§

Error
An error.
RawFunctionKind
The kind of a raw function. The kind of the function (bytecode or FFI).
RawValueKind
The kind of a RawValue. The kind of a value.
Value
A dynamically typed value.

Traits§

ForeignFunction
A Rust function that can be called from Mica.
GlobalName
A trait for names convertible to global IDs.
MethodSignature
Implemented by every type that can be used as a method signature.
MicaLanguageResultExt
Extensions for converting Results into a mica-language FFI-friendly structure.
MicaResultExt
Extensions for converting Results into a Mica FFI-friendly structure.
MutSelfFromRawValue
Implemented by all types that can be a &mut self parameter in an instance function.
ObjectConstructor
A constructor of objects of type T.
OptionalGlobalName
A trait for names convertible to global IDs.
SelfFromRawValue
Implemented by all types that can be a &self parameter in an instance function.
StandardLibrary
Definitions of basic types provided by a standard library. This role is usually fulfilled by the mica-std crate.
TryFromValue
Implemented by types that can be constructed from Values.
UserData
Marker trait for all user data types.

Type Aliases§

LanguageError
A raw mica-language error, with metadata such as stack traces.
LanguageErrorKind
A raw mica-language error kind.
RawForeignFunction
The implementation of a raw foreign function. The ABI of a raw foreign function.