Crate wren [] [src]

Bindings to the Wren scripting language API.

For complete documentation on each type and function, refer to wren.h in the official Wren repository.

Modules

macros

Macros

wren_bind_foreign_class_fn

Wrap a Fn(&mut VM, &str, &str) -> ForeignClassMethods as an ffi-suitable BindForeignClassFn.

wren_bind_foreign_method_fn

Wrap a Fn(&mut VM, &str, &str, bool, &str) -> ForeignMethodFn as an ffi-suitable BindForeignMethodFn.

wren_error_fn

Wrap a Fn(&mut VM, ErrorType, &str, i32, &str) as an ffi-suitable ErrorFn.

wren_finalizer_fn

Wrap a Fn(Pointer) as an ffi-suitable FinalizerFn.

wren_foreign_method_fn

Wrap a Fn(&mut VM) as an ffi-suitable ForeignMethodFn.

wren_load_module_fn

Wrap a Fn(&mut VM, &str) -> Option<String> as an ffi-suitable LoadModuleFn.

wren_reallocate_fn

Wrap a Fn(Pointer, usize) -> Pointer as an ffi-suitable ReallocateFn.

wren_write_fn

Wrap a Fn(&mut VM, &str) as an ffi-suitable WriteFn.

Structs

Configuration

Wrapper around WrenConfiguration. Refer to wren.h for info on each field.

ForeignClassMethods

Wrapper around WrenForeignClassMethods.

Handle

Reference-counted wrapper around WrenHandle.

VM

Wrapper around WrenVM. Refer to wren.h for info on each function.

Enums

ErrorType
InterpretResult
Type

Type Definitions

BindForeignClassFn
BindForeignMethodFn
ErrorFn
FinalizerFn
ForeignMethodFn
LoadModuleFn
Pointer

Typedef for a raw pointer.

ReallocateFn
WriteFn