Expand description
We expose the Wren API in a Rust-y way
Re-exports§
pub extern crate wren_sys;
Modules§
Macros§
- create_
module - Creates a Wren module
- get_
slot_ checked - 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.
- send_
foreign - Sends a foreign object
$objas an object of$classin module$modlto slot$slot - wren_
module
Structs§
- Basic
File Loader - Class
Object Pointers - List of
MethodPointers that make up the methods of a [’RuntimeClass`] - Foreign
Object - Indicates a “foreign object” to Wren
- Function
Handle - A handle to a Wren method call
- Handle
- A handle to a Wren object
- Method
Pointer - Module
- A container for
RuntimeClassstructs - Module
Library - Simulates a module structure for foreign functions
- Null
Loader - User
Data - A mostly internal class that is exposed so that some externally generated code can access it.
- VM
- VMConfig
- Allows for the customization of a Wren VM
- VMStack
Frame Error - VMWrapper
- High-level wrapper around a Wren VM
Enums§
- Foreign
Send Error - Errors that can happen when sending a foreign object to Wren
- Function
Signature - Represents Wren function signatures
- Slot
Type - Represents Wren slot types
- VMError
- Possible errors for a Wren script
- Wren
Error - Directly internally to report errors
Traits§
- Class
- Initialize function for Wren classes
- Class
Object - Indicates a “real” Wren class, and must be implemented to be added to a
Module - Module
Script Loader - Enables one to enable module loading for Wren
- Printer
- Sends strings for printing to an output