Skip to main content

Module object

Module object 

Source
Expand description

Boa’s representation of a JavaScript object and builtin object wrappers

For the builtin object wrappers, please see object::builtins for implementors.

Modules§

builtins
All Rust API wrappers for Boa’s ECMAScript objects.
shape
Implements object shapes.

Structs§

BorrowError
An error returned by JsObject::try_borrow.
BorrowMutError
An error returned by JsObject::try_borrow_mut.
ConstructorBuilder
Builder for creating constructors objects, like Array.
ErasedObjectData
A erased object data type that must never be used directly.
FunctionBinding
The functions binding.
FunctionObjectBuilder
Builder for creating native function objects
JsObject
Garbage collected Object.
Object
The internal representation of a JavaScript object.
ObjectInitializer
Builder for creating objects with properties.
PrivateName
A Private Name.
PropertyMap
A PropertyMap contains all the properties of an object.
RecursionLimiter
Prevents infinite recursion during Debug::fmt, JSON.stringify, and other conversions. This uses a thread local, so is not safe to use where the object graph will be traversed by multiple threads!
WeakJsObject
A weak handle to a JsObject, from JsObject::downgrade.

Enums§

IndexProperties
An iterator over the indexed property entries of an Object.
IndexPropertyKeys
An iterator over the index keys (u32) of an Object.
IndexPropertyValues
An iterator over the index values (Property) of an Object.
IndexedProperties
This represents all the indexed properties.
IntegrityLevel
Object integrity level.
PrivateElement
The representation of private object elements.

Constants§

CONSTRUCTOR
Const constructor, usually set on prototypes as a key to point to their respective constructor object.
PROTOTYPE
Const prototype, usually set on constructors as a key to point to their respective prototype object.

Traits§

JsData
Represents a type that can be stored inside a JsObject.
NativeObject
This trait allows Rust types to be passed around as objects.

Type Aliases§

ErasedObject
An Object with inner data set to ErasedObjectData.
JsPrototype
A type alias for an object prototype.
Ref
A wrapper type for an immutably borrowed type T.
RefMut
A wrapper type for a mutably borrowed type T.