Struct js::front::stdlib::object::Property[src]

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

A Javascript property

Fields

configurable

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

enumerable

If the property shows up in enumeration of the object

writable

If this property can be changed with an assignment

value

The value associated with the property

get

The function serving as getter

set

The function serving as setter

Methods

impl Property

fn new(value: Value) -> Property

Make a new property with the given value

Trait Implementations

impl ToValue for Property

fn to_value(&self) -> Value

impl FromValue for Property

fn from_value(v: Value) -> Result<Property, &'static str>

Derived Implementations

impl Clone for Property

fn clone(&self) -> Property

fn clone_from(&mut self, source: &Self)