Struct boa::js::object::Property

source ·
pub struct Property {
    pub configurable: bool,
    pub enumerable: bool,
    pub writable: bool,
    pub value: Value,
    pub get: Value,
    pub set: Value,
}
Expand description

Fields

configurable: bool

If the type of this can be changed and this can be deleted

enumerable: bool

If the property shows up in enumeration of the object

writable: bool

If this property can be changed with an assignment

value: Value

The value associated with the property

get: Value

The function serving as getter

set: Value

The function serving as setter

Implementations

Make a new property with the given value

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
Convert this value to a Javascript value
Convert this value to a Rust value
Marks all contained Gcs.
Increments the root-count of all contained Gcs.
Decrements the root-count of all contained Gcs.
Runs Finalize::finalize() on this object and all contained subobjects Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.