Modules§
- ptr πManually manage memory through raw pointers.
Structs§
- Handle
Value πArray A generic handle to an array of rooted values. - JSContext π
- JSObject π
- Rc πA single-threaded reference-counting pointer. βRcβ stands for βReference Countedβ.
Enums§
- Conversion
Behavior πBehavior for converting out-of-range integers. - Conversion
Result πAn enum to better support enums through FromJSValConvertible::from_jsval.
Traits§
- FromJS
ValConvertible πA trait to convertJSVal
s to Rust types. - ToJS
ValConvertible πA trait to convert Rust types toJSVal
s.
Functions§
- Current
Global π βOrNull Get the current realmβs global. Returns nullptr if no realm has been entered. - IsCallable π βReturn true if the given object is callable. In ES6 terms, an object is callable if it has a [Call] internal method.
- JS_
Call π βFunction Value - JS_
NewObject π β - JS_
Wrap π βValue - Null
Value π - Object
OrNull πValue - Object
Value π - Undefined
Value π - maybe_
resume_ πunwind If there is a pending panic, resume unwinding. - throw_
type_ π βerror Throw aTypeError
with the given message.
Type Aliases§
- Handle
Object π - Handle
Value π - Heap π
- JSVal π
- Mutable
Handle πObject - Mutable
Handle πValue - RawHandle
Value πReference to a T that has been rooted elsewhere. This is most useful as a parameter type, which guarantees that the T lvalue is properly rooted. See βMove GC Stack Rootingβ above.