Crate rquickjs_core[−][src]
High-level bindings to quickjs
The rquickjs crate provides safe high-level bindings to the quickjs javascript engine.
This crate is heavily inspired by the rlua crate.
Modules
| intrinsic | A marker types for intrinsic |
| qjs | Native low-level bindings |
Macros
| class_def | classesThe macro to simplify class definition. |
| generic_loader | loaderThe helper macro to impl |
| module_init | Helper macro to provide module init function |
Structs
| Accessor | propertiesThe accessor descriptor of a readonly property |
| Array | Rust representation of a javascript object optimized as an array. |
| Async | futuresThe wrapper for async functons |
| AsyncStd | async-stdThe |
| Atom | An atom is value representing the name of a variable of an objects and can be created from any javascript value. |
| BuiltinLoader | loaderThe builtin script module loader |
| BuiltinResolver | loaderThe builtin module resolver |
| Bundle | The resolver and loader for bundles of compiled modules |
| Class | classesThe class object interface |
| ClassId | classesThe type of identifier of class |
| Coerced | The wrapper for values to force coercion |
| Compile | loaderModules compiling data |
| Constructor | classesThe wrapper for constructor function |
| Context | A single execution context with its own global variables and stack. |
| ContextBuilder | Used for building a |
| Created | The marker for the module which is created but not loaded yet |
| Ctx | Context in use, passed to |
| Evaluated | The marker for the module which is already loaded and evaluated |
| Executor | futuresThe async executor future |
| ExportEntriesIter | exportsAn iterator over the items exported out a module |
| ExportNamesIter | exportsAn iterator over the items exported out a module |
| FileResolver | loaderThe file module resolver |
| Filter | The property filter |
| Func | The wrapper for function to convert is into JS |
| Function | Rust representation of a javascript function. |
| Idle | The idle awaiting future |
| Loaded | The marker for the module which is loaded but not evaluated yet |
| MemoryUsage | |
| Method | The wrapper for method functions |
| Module | Javascript module with certain exports and imports |
| ModuleLoader | loaderThe builtin native module loader |
| MutFn | The wrapper for mutable functions |
| Native | The marker for the module which is created using |
| NativeLoader | dyn-loadThe native module loader |
| Null | The placeholder which treated as |
| Object | Rust representation of a javascript object. |
| OnceFn | The wrapper for once functions |
| Opt | The wrapper to get optional argument from input |
| Persistent | The wrapper for JS values to keep it from GC |
| Promise | futuresFuture-aware promise |
| Promised | futuresWrapper for futures to convert to JS promises |
| Property | propertiesThe data descriptor of a property |
| RefsMarker | classesThe helper for QuickJS garbage collector which helps it find internal JS object references. |
| RegisteryKey | registeryKey for a registery of a context. |
| Rest | The wrapper the rest arguments from input |
| Runtime | Quickjs runtime, entry point of the library. |
| RustAllocator | The allocator which uses Rust global allocator |
| Script | The marker for the module which is created from text source |
| ScriptLoader | loaderThe script module loader |
| String | Rust representation of a javascript string. |
| Symbol | Rust representation of a javascript symbol. |
| This | The wrapper to get |
| Tokio | tokioThe |
| Undefined | The placeholder which treated as |
| Uninitialized | The placeholder which treated as uninitialized JS value |
| Value | Any javascript value |
| WithProto | classesThe prototype setting wrapper |
Enums
| Error | Error type of the library. |
| Type | The type of value |
Traits
| Allocator | allocatorThe allocator interface |
| AsArguments | A helper trait to pass arguments on a function calls. |
| AsFunction | The trait to wrap rust function to JS directly |
| AsProperty | propertiesThe property interface |
| ClassDef | classesThe ES6 class definition trait |
| ExecutorSpawner | futuresThe trait to spawn execution of pending jobs on async runtime |
| FromAtom | Trait for converting values from atoms. |
| FromIteratorJs | The Rust's |
| FromJs | For converting javascript values to rust values |
| HasByteCode | The module data which contains bytecode |
| HasRefs | classesThe helper trait to mark internal JS value refs |
| IntoAtom | Trait for converting values to atoms. |
| IntoJs | For converting rust values to javascript values |
| Intrinsic | The internal trait to add JS builting |
| IteratorJs | |
| Loader | loaderModule loader interface |
| ModuleDef | Module definition trait |
| MultiWith | A trait for using multiple contexts at the same time. |
| ObjectDef | The helper trait to define objects |
| Outlive | The trait to help break lifetime rules when JS objects leaves current context via |
| ParallelSend | The marker trait which requires |
| Resolver | loaderModule resolver interface |
Type Definitions
| ModuleLoadFn | The raw module load function ( |
| RawMemPtr | allocatorRaw memory pointer |
| Result | Result type used throught the library. |