[][src]Struct boa::js::object::Property

pub struct Property {
    pub configurable: bool,
    pub enumerable: bool,
    pub writable: bool,
    pub value: Value,
    pub get: Value,
    pub set: Value,
}

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

Methods

impl Property[src]

pub fn is_property_key(value: &Value) -> bool[src]

Checks if the provided Value can be used as a property key.

pub fn new(value: Value) -> Self[src]

Make a new property with the given value

Trait Implementations

impl ToValue for Property[src]

impl FromValue for Property[src]

impl Clone for Property[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Drop for Property[src]

impl Debug for Property[src]

impl Trace for Property[src]

impl Finalize for Property[src]

fn finalize(&self)[src]

Auto Trait Implementations

impl !Sync for Property

impl !Send for Property

impl !Unpin for Property

impl !RefUnwindSafe for Property

impl !UnwindSafe for Property

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,