Expand description
Boa’s representation of a JavaScript object and builtin object wrappers
For the builtin object wrappers, please seeobject::builtins for implementors.
Modules§
Structs§
- Borrow
Error - An error returned by
JsObject::try_borrow. - Borrow
MutError - An error returned by
JsObject::try_borrow_mut. - Constructor
Builder - Builder for creating constructors objects, like
Array. - Erased
Object Data - A erased object data type that must never be used directly.
- Function
Binding - The functions binding.
- Function
Object Builder - Builder for creating native function objects
- JsObject
- Garbage collected
Object. - Object
- The internal representation of a JavaScript object.
- Object
Initializer - Builder for creating objects with properties.
- Private
Name - A Private Name.
- Property
Map - A
PropertyMapcontains all the properties of an object. - Recursion
Limiter - 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 bymultiple threads!
Enums§
- Index
Properties - An iterator over the indexed property entries of an
Object. - Index
Property Keys - An iterator over the index keys (
u32) of anObject. - Index
Property Values - An iterator over the index values (
Property) of anObject. - Indexed
Properties - This represents all the indexed properties.
- Integrity
Level - Object integrity level.
- Private
Element - 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. - Native
Object - This trait allows Rust types to be passed around as objects.
Type Aliases§
- Erased
Object - An
Objectwith inner data set toErasedObjectData. - 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.