Expand description
Re-exports§
pub use runtime::Runtime;
pub use context::Context;
pub use context::Ctx;
pub use class::Class;
pub use context::AsyncContext;
futures
pub use runtime::AsyncRuntime;
futures
Modules§
- allocator
allocator
Tools for using different allocators with QuickJS. - JavaScript array types.
- QuickJS atom functionality.
- JavaScript classes defined from Rust.
- JS Contexts related types.
- Utilities for converting to and from JavaScript values.
- JavaScript function functionality
- loader
loader
Loaders and resolvers for loading JS modules. - Utility types and traits.
- Types for loading and handling JS modules.
- Module for types dealing with JS objects.
- A group of often used types.
- Javascript promises and future integration.
- Native low-level bindings
- QuickJS runtime related types.
Macros§
- async_
with futures
A macro for safely using an asynchronous context while capturing the environment. - Helper macro to provide module init function. Use for exporting module definitions to be loaded as part of a dynamic library.
Structs§
- Rust representation of a JavaScript object optimized as an array.
- Array
Buffer array-buffer
Rust representation of a JavaScript object of class ArrayBuffer. - A QuickJS Atom.
- Rust representation of a JavaScript big int.
- The wrapper for values to force coercion
- A JavaScript instance of Error
- The property filter
- A JavaScript function.
- A JavaScript module.
- The placeholder which treated as
null
value - Rust representation of a JavaScript object.
- The wrapper for JS values to keep it from GC
- A JavaScript promise.
- Rust representation of a JavaScript string.
- Rust representation of a JavaScript symbol.
- Typed
Array array-buffer
Rust representation of a JavaScript objects of TypedArray classes. - The placeholder which treated as
undefined
value - Any JavaScript value
Enums§
- An error type containing possible thrown exception values.
- Error type of the library.
- The type of JavaScript value
Traits§
- Extension trait to easily turn results with
Error
into results withCaughtError
- Trait for converting values from atoms.
- The Rust’s
FromIterator
trait to use withCtx
- For converting JavaScript values to Rust values
- Trait for converting values to atoms.
- For converting Rust values to JavaScript values
- The trait which signifies a type using the rquickjs
'js
lifetime trick for maintaining safety around Javascript values. - Extension trait to easily turn results with
CaughtError
into results withError
Type Aliases§
- Result type containing an the JavaScript exception if there was one.
- Result type used throughout the library.