Module module

Source

ModulesΒ§

cmp πŸ”’
Utilities for comparing and ordering values.
typedarray πŸ”’
High-level, safe bindings for JS typed array APIs. Allows creating new typed arrays or wrapping existing JS reflectors, and prevents reinterpreting existing buffers as different types except in well-defined cases.

MacrosΒ§

pref πŸ”’
A convenience macro for accessing a preference value using its static path. Passing an invalid path is a compile-time error.
typedarray πŸ”’

StructsΒ§

CString πŸ”’
A type representing an owned, C-compatible, nul-terminated string with no nul bytes in the middle.
CallArgs πŸ”’
CustomAutoRooterGuard πŸ”’
An RAII guard used to root underlying data in CustomAutoRooter until the guard is dropped (falls out of scope). The underlying data can be accessed through this guard via its Deref and DerefMut implementations. This structure is created by root method on CustomAutoRooter or by the auto_root! macro.
GCContext πŸ”’
Handle πŸ”’
JSAutoRealm πŸ”’
JSClass πŸ”’
JSClassOps πŸ”’
JSFunctionSpec πŸ”’
JSJitGetterCallArgs πŸ”’
A class, expected to be passed by value, which represents the CallArgs for a JSJitGetterOp.
JSJitInfo πŸ”’
This struct contains metadata passed from the DOM to the JS Engine for JIT optimizations on DOM property accessors.
JSJitMethodCallArgs πŸ”’
JSJitSetterCallArgs πŸ”’
A class, expected to be passed by value, which represents the CallArgs for a JSJitSetterOp.
JSNativeWrapper πŸ”’
Wrapper to relace JSNative for JSPropertySpecs and JSFunctionSpecs. This will allow us to pass one JSJitInfo per function with the property/function spec, without additional field overhead.
JSPropertySpec πŸ”’
Description of a property. JS_DefineProperties and JS_InitClass take arrays of these and define many properties at once. JS_PSG, JS_PSGS and JS_PS_END are helper macros for defining such arrays.
JSPropertySpec_AccessorsOrValue_Accessors πŸ”’
JSPropertySpec_ValueWrapper πŸ”’
JSTracer πŸ”’
JSTypedMethodJitInfo πŸ”’
MutableHandle πŸ”’
NonNull πŸ”’
*mut T but non-zero and covariant.
ObjectOpResult πŸ”’
Per ES6, the [[DefineOwnProperty]] internal method has three different possible outcomes:
PropertyDescriptor πŸ”’
A structure that represents a property on an object, or the absence of a property. Use {,Mutable}Handle to interact with instances of this structure rather than interacting directly with member fields.
ProxyTraps πŸ”’
RawHandle πŸ”’
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.
RawMutableHandle πŸ”’
Similar to a handle, but the underlying storage can be changed. This is useful for outparams.
RawMutableHandleIdVector πŸ”’
__BindgenBitfieldUnit πŸ”’

EnumsΒ§

JSJitInfo_AliasSet πŸ”’
An enum that describes what this getter/setter/method aliases. This determines what things can be hoisted past this call, and if this call is movable what it can be hoisted past.
JSJitInfo_ArgType πŸ”’
JSJitInfo_OpType πŸ”’
JSPropertySpec_Kind πŸ”’
JSPropertySpec_ValueWrapper_Type πŸ”’
JSValueType πŸ”’
SymbolCode πŸ”’

ConstantsΒ§

JSCLASS_FOREGROUND_FINALIZE πŸ”’
JSCLASS_GLOBAL_SLOT_COUNT πŸ”’
JSCLASS_IS_DOMJSCLASS πŸ”’
JSCLASS_IS_GLOBAL πŸ”’
JSCLASS_RESERVED_SLOTS_MASK πŸ”’
JSCLASS_RESERVED_SLOTS_SHIFT πŸ”’
JSITER_HIDDEN πŸ”’
JSITER_OWNONLY πŸ”’
JSITER_SYMBOLS πŸ”’
JSPROP_ENUMERATE πŸ”’
The property is visible in for/in loops.
JSPROP_PERMANENT πŸ”’
The property is non-configurable: it can’t be deleted, and if it’s an accessor descriptor, its getter and setter can’t be changed.
JSPROP_READONLY πŸ”’
The property is non-writable. This flag is only valid for data properties.

StaticsΒ§

UndefinedHandleValue πŸ”’

TraitsΒ§

GCMethods πŸ”’
A trait for types which can place appropriate GC barriers.
JSTraceable πŸ”’
Types that can be traced.
ToJSValConvertible πŸ”’
A trait to convert Rust types to JSVals.

FunctionsΒ§

AppendToIdVector πŸ”’ ⚠
Call πŸ”’ ⚠
CreateProxyHandler πŸ”’ ⚠
GetPropertyKeys πŸ”’ ⚠
GetProxyReservedSlot πŸ”’ ⚠
GetRealmErrorPrototype πŸ”’ ⚠
GetRealmFunctionPrototype πŸ”’ ⚠
GetRealmIteratorPrototype πŸ”’ ⚠
GetRealmObjectPrototype πŸ”’ ⚠
GetWellKnownSymbol πŸ”’ ⚠
Get one of the well-known symbols defined by ES6. A single set of well-known symbols is shared by all compartments in a JSRuntime.
JS_AtomizeAndPinString πŸ”’ ⚠
JS_CALLEE πŸ”’ ⚠
JS_CopyOwnPropertiesAndPrivateFields πŸ”’ ⚠
JS_DefineProperty πŸ”’ ⚠
JS_DefinePropertyById2 πŸ”’ ⚠
JS_ForwardGetPropertyTo πŸ”’ ⚠
Get the value of the property obj[id], or undefined if no such property exists. This is the C++ equivalent of vp = Reflect.get(obj, id, receiver).
JS_GetProperty πŸ”’ ⚠
JS_GetPropertyDescriptorById πŸ”’ ⚠
JS_GetReservedSlot πŸ”’ ⚠
JS_HasPropertyById πŸ”’ ⚠
Compute the expression id in obj.
JS_InitializePropertiesFromCompatibleNativeObject πŸ”’ ⚠
JS_NewObjectWithGivenProto πŸ”’ ⚠
JS_NewObjectWithoutMetadata πŸ”’ ⚠
JS_NewPlainObject πŸ”’ ⚠
Creates a new plain object, like new Object(), with Object.prototype as [[Prototype]].
JS_SetImmutablePrototype πŸ”’ ⚠
JS_SetProperty πŸ”’ ⚠
JS_SetPrototype πŸ”’ ⚠
JS_SetReservedSlot πŸ”’ ⚠
JS_WrapObject πŸ”’ ⚠
NewProxyObject πŸ”’ ⚠
PrivateValue πŸ”’
RUST_INTERNED_STRING_TO_JSID πŸ”’ ⚠
RUST_SYMBOL_TO_JSID πŸ”’ ⚠
SetProxyReservedSlot πŸ”’ ⚠
get_context_realm πŸ”’ ⚠
get_object_class πŸ”’ ⚠
get_object_realm πŸ”’ ⚠
int_to_jsid πŸ”’ ⚠
wrap_panic πŸ”’
Generic wrapper for JS engine callbacks panic-catching

Type AliasesΒ§

RawHandleId πŸ”’
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.
RawHandleObject πŸ”’
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.
RawMutableHandleObject πŸ”’
Similar to a handle, but the underlying storage can be changed. This is useful for outparams.
RawMutableHandleValue πŸ”’
Similar to a handle, but the underlying storage can be changed. This is useful for outparams.
jsid πŸ”’

UnionsΒ§

JSJitInfo__bindgen_ty_1 πŸ”’
JSJitInfo__bindgen_ty_2 πŸ”’
JSJitInfo__bindgen_ty_3 πŸ”’
JSPropertySpec_Accessor πŸ”’
JSPropertySpec_AccessorsOrValue πŸ”’
JSPropertySpec_Name πŸ”’
JSPropertySpec_ValueWrapper__bindgen_ty_1 πŸ”’