Skip to main content

Crate script_bindings

Crate script_bindings 

Source

Modulesยง

assert
buffer_source
callback
Base classes to work with IDL callbacks.
cell
A shareable mutable container for the DOM.
codegen
constant ๐Ÿ”’
WebIDL constants.
constructor ๐Ÿ”’
conversions
dom
domstring
error
finalize ๐Ÿ”’
Generic finalizer implementations for DOM binding implementations.
guard ๐Ÿ”’
Machinery to conditionally expose things.
import ๐Ÿ”’
inheritance
The Castable trait.
init ๐Ÿ”’
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.
lock ๐Ÿ”’
mem ๐Ÿ”’
Routines for handling measuring the memory usage of arbitrary DOM nodes.
namespace ๐Ÿ”’
Machinery to initialise namespace objects.
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
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