Movatterモバイル変換


[0]ホーム

URL:


Docs.rs

Module value

Modulevalue 

Source
Expand description

Boa’s ECMAScript Value implementation.

Javascript values, utility methods and conversion between Javascript values and Rust values.

Macros§

js_object
Thejs_value! macro creates aJsValue instance based on a JSON-like DSL.
js_value
Create aJsObject object from a simpler DSL that resembles JSON.

Structs§

Convert
A wrapper type that allows converting aJsValue to a specific type.This is useful when you want to convert aJsValue to a Rust type.
JsValue
A generic JavaScript value. This can be any ECMAScript language valid value.
ValueDisplay
This object is used for displaying aValue.

Enums§

AbstractRelation
The result of theAbstract Relational Comparison.
IntegerOrInfinity
Represents the result of theToIntegerOrInfinity operation
JsVariant
A non-mutable variant of aJsValue.Represents either a primitive value (bool,f64,i32) or a referenceto a heap allocated value (JsString,JsSymbol).
Nullable
A value that can benull in JavaScript, but notundefined.
Numeric
Numeric value which can be of two typesNumber,BigInt.
PreferredType
The preferred type to convert an object to a primitiveValue.
Type
Possible types of values as defined athttps://tc39.es/ecma262/#sec-typeof-operator.

Traits§

TryFromJs
This trait adds a fallible and efficient conversions from aJsValue to Rust types.
TryIntoJs
This trait adds a conversions from a Rust Type intoJsValue.

Derive Macros§

TryFromJs
Derives theTryFromJs trait, with the#[boa()] attribute.
TryIntoJs
Derives theTryIntoJs trait, with the#[boa()] attribute.

[8]ページ先頭

©2009-2025 Movatter.jp