logo
pub struct PropertyDescriptor { /* private fields */ }
Expand description

This represents a JavaScript Property AKA The Property Descriptor.

Property descriptors present in objects come in three main flavors:

  • data descriptors
  • accessor descriptors
  • generic descriptor

A data Property Descriptor is one that includes any fields named either [[Value]] or [[Writable]].

An accessor Property Descriptor is one that includes any fields named either [[Get]] or [[Set]].

A generic Property Descriptor is a Property Descriptor value that is neither a data Property Descriptor nor an accessor Property Descriptor.

More information:

Implementations

An accessor Property Descriptor is one that includes any fields named either [[Get]] or [[Set]].

More information:

A data Property Descriptor is one that includes any fields named either [[Value]] or [[Writable]].

More information:

A generic Property Descriptor is one that is neither a data descriptor nor an accessor descriptor.

More information:

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
Returns the “default value” for a type. Read more
Executes the destructor for this type. Read more
Converts to this type from the input type.
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.

Convert the Rust type which implements NativeObject to a &dyn Any.
Convert the Rust type which implements NativeObject to a &mut dyn Any.
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.