[][src]Struct boa::property::DataDescriptor

pub struct DataDescriptor { /* fields omitted */ }

A data descriptor is a property that has a value, which may or may not be writable.

More information:

Implementations

impl DataDescriptor[src]

pub fn new<V>(value: V, attributes: Attribute) -> Self where
    V: Into<Value>, 
[src]

Create a new DataDescriptor.

pub fn value(&self) -> Value[src]

Return the value of the data descriptor.

pub fn attributes(&self) -> Attribute[src]

Return the attributes of the descriptor.

pub fn configurable(&self) -> bool[src]

Check whether the descriptor is configurable.

pub fn set_configurable(&mut self, configurable: bool)[src]

Set whether the descriptor is configurable.

pub fn enumerable(&self) -> bool[src]

Check whether the descriptor is enumerable.

pub fn set_enumerable(&mut self, enumerable: bool)[src]

Set whether the descriptor is enumerable.

pub fn writable(&self) -> bool[src]

Check whether the descriptor is writable.

pub fn set_writable(&mut self, writable: bool)[src]

Set whether the descriptor is writable.

Trait Implementations

impl Clone for DataDescriptor[src]

impl Debug for DataDescriptor[src]

impl Drop for DataDescriptor[src]

impl Finalize for DataDescriptor[src]

impl From<DataDescriptor> for PropertyDescriptor[src]

impl Trace for DataDescriptor[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> NativeObject for T where
    T: Any + Debug + Trace
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,