Crate wren_rust [] [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 a WrenConfiguration.

ForeignClassMethods

Wrapper around a WrenForeignClassMethods.

VM

Wrapper around a WrenVM.

Enums

ErrorType
InterpretResult
Type

Type Definitions

BindForeignClassFn
BindForeignMethodFn
ErrorFn
FinalizerFn
ForeignMethodFn
LoadModuleFn
Pointer

Typedef for a raw pointer.

ReallocateFn
WriteFn