Skip to main content

Module bindings

Module bindings 

Source

Modulesยง

assert ๐Ÿ”’
buffer_source ๐Ÿ”’
callback ๐Ÿ”’
Base classes to work with IDL callbacks.
cell ๐Ÿ”’
A shareable mutable container for the DOM.
codegen ๐Ÿ”’
conversions ๐Ÿ”’
dom ๐Ÿ”’
domstring ๐Ÿ”’
error ๐Ÿ”’
inheritance ๐Ÿ”’
The Castable trait.
interface ๐Ÿ”’
Machinery to initialise interface prototype objects and interface objects.
interfaces ๐Ÿ”’
iterable ๐Ÿ”’
Implementation of iterable<...> and iterable<..., ...> WebIDL declarations.
like ๐Ÿ”’
Implementation of setlike<...> and maplike<..., ...> WebIDL declarations.
num ๐Ÿ”’
The Finite<T> struct.
principals ๐Ÿ”’
proxyhandler ๐Ÿ”’
Utilities for the implementation of JSAPI proxy handlers.
realms ๐Ÿ”’
record ๐Ÿ”’
The Record (open-ended dictionary) type.
refcounted ๐Ÿ”’
A generic, safe mechanism by which DOM objects can be pinned and transferred between threads (or intra-thread for asynchronous events). Akin to Geckoโ€™s nsMainThreadPtrHandle, this uses thread-safe reference counting and ensures that the actual SpiderMonkey GC integration occurs on the script thread via weak refcounts. Ownership of a Trusted<T> object means the DOM object of type T to which it points remains alive. Any other behaviour is undefined. To guarantee the lifetime of a DOM object when performing asynchronous operations, obtain a Trusted<T> from that object and pass it along with each operation. A usable pointer to the original DOM object can be obtained on the script thread from a Trusted<T> via the root method.
reflector ๐Ÿ”’
root ๐Ÿ”’
routed_promise ๐Ÿ”’
script_runtime ๐Ÿ”’
settings_stack ๐Ÿ”’
str ๐Ÿ”’
The ByteString struct.
structuredclone ๐Ÿ”’
tasks ๐Ÿ”’
Machinery for tasks.
trace ๐Ÿ”’
traits ๐Ÿ”’
utils ๐Ÿ”’
weakref ๐Ÿ”’
Weak-referenceable JS-managed DOM objects.
wrap ๐Ÿ”’

Macrosยง

cformat ๐Ÿ”’
Creates a CString using interpolation of runtime expressions. Basically a format! that produces a CString.
match_domstring_ascii ๐Ÿ”’
Use this to match &str against lazydomstring efficiently. You are only allowed to match ascii strings otherwise this macro will lead to wrong results.
match_domstring_ascii_inner ๐Ÿ”’
task ๐Ÿ”’

Traitsยง

DomTypes ๐Ÿ”’