Expand description
Various utilities to glue JavaScript and the DOM implementation together.
Structsยง
- DOMClass ๐The struct that holds inheritance information for DOM object reflectors.
- DOMJS
Class ๐The JSClass used for DOM object reflectors. - Global
Static ๐Data Static data associated with a global object.
Constantsยง
- DOM_
CALLBACKS ๐
Traitsยง
- AsVoid
Ptr ๐
Functionsยง
- Eagerly define all relevant WebIDL interface constructors on the provided global object.
- Get an array index from the given
jsid
. ReturnsNone
if the givenjsid
is not an integer. - get_
dictionary_ ๐ โproperty Get the property with nameproperty
fromobject
. ReturnsErr(())
on JSAPI failure (there is a pending exception), andOk(false)
if there was no property with the given name. - has_
property_ ๐ โon_ prototype Returns whetherproxy
has a propertyid
on its prototype. - is_
platform_ ๐object - Returns wether
obj
is a platform object using dynamic unwrap https://heycam.github.io/webidl/#dfn-platform-object - Returns wether
obj
is a platform object using static unwrap https://heycam.github.io/webidl/#dfn-platform-object - set_
dictionary_ ๐ โproperty Set the property with nameproperty
fromobject
. ReturnsErr(())
on JSAPI failure, or null object, and Ok(()) otherwise - to_
frozen_ ๐array Returns a JSVal representing the frozen JavaScript array
Type Aliasesยง
- Proto
OrIface ๐Array An array of *mut JSObject of size PROTO_OR_IFACE_LENGTH.