Expand description
Boa’s ECMAScript Value implementation.
Javascript values, utility methods and conversion between Javascript values and Rust values.
Macros§
- js_
object - The
js_value!macro creates aJsValueinstance based on a JSON-like DSL. - js_
value - Create a
JsObjectobject from a simpler DSL that resembles JSON.
Structs§
- Convert
- A wrapper type that allows converting a
JsValueto a specific type.This is useful when you want to convert aJsValueto a Rust type. - JsValue
- A generic JavaScript value. This can be any ECMAScript language valid value.
- Value
Display - This object is used for displaying a
Value.
Enums§
- Abstract
Relation - The result of theAbstract Relational Comparison.
- Integer
OrInfinity - Represents the result of the
ToIntegerOrInfinityoperation - JsVariant
- A non-mutable variant of a
JsValue.Represents either a primitive value (bool,f64,i32) or a referenceto a heap allocated value (JsString,JsSymbol). - Nullable
- A value that can be
nullin JavaScript, but notundefined. - Numeric
- Numeric value which can be of two types
Number,BigInt. - Preferred
Type - The preferred type to convert an object to a primitive
Value. - Type
- Possible types of values as defined athttps://tc39.es/ecma262/#sec-typeof-operator.
Traits§
- TryFrom
Js - This trait adds a fallible and efficient conversions from a
JsValueto Rust types. - TryInto
Js - This trait adds a conversions from a Rust Type into
JsValue.