Expand description
We expose the Wren API in a Rust-y way
Re-exports
pub extern crate wren_sys;
Modules
Macros
- Creates a Wren module
- Checks if the slot type is correct at the given slot. If not, will panic. If it is, will return the item at the given slot.
- Sends a foreign object
$obj
as an object of$class
in module$modl
to slot$slot
Structs
- List of
MethodPointer
s that make up the methods of a [’RuntimeClass`] - Indicates a “foreign object” to Wren
- A handle to a Wren method call
- A handle to a Wren object
- A container for
RuntimeClass
structs - Simulates a module structure for foreign functions
- A mostly internal class that is exposed so that some externally generated code can access it.
- Allows for the customization of a Wren VM
- High-level wrapper around a Wren VM
Enums
- Errors that can happen when sending a foreign object to Wren
- Represents Wren function signatures
- Represents Wren slot types
- Possible errors for a Wren script
- Directly internally to report errors
Traits
- Initialize function for Wren classes
- Indicates a “real” Wren class, and must be implemented to be added to a
Module
- Enables one to enable module loading for Wren
- Sends strings for printing to an output