[][src]Struct ducc::PropertyDescriptor

pub struct PropertyDescriptor<'ducc> { /* fields omitted */ }

Implementations

impl<'ducc> PropertyDescriptor<'ducc>[src]

pub fn new() -> PropertyDescriptor<'ducc>[src]

pub fn enumerable(self, b: bool) -> Self[src]

Whether this property shows up during enumeration of the properties on the corresponding object.

Defaults to false

pub fn configurable(self, b: bool) -> Self[src]

Whether the type of this property descriptor may be changed and the property may be deleted from the corresponding object.

Defaults to false

pub fn writable(self, b: bool) -> Self[src]

Whether the value associated with the property may be changed with an assignment operator. Must not be set when using getters or setters.

Defaults to false

pub fn value(self, value: Value<'ducc>) -> Self[src]

Builds the descriptor with given value for the property

pub fn getter_setter(self, get: Function<'ducc>, set: Function<'ducc>) -> Self[src]

Builds the descriptor with a getter and a setter

pub fn getter(self, get: Function<'ducc>) -> Self[src]

Builds the descriptor with a getter

pub fn setter(self, set: Function<'ducc>) -> Self[src]

Builds the descriptor with a setter

Auto Trait Implementations

impl<'ducc> RefUnwindSafe for PropertyDescriptor<'ducc>

impl<'ducc> !Send for PropertyDescriptor<'ducc>

impl<'ducc> !Sync for PropertyDescriptor<'ducc>

impl<'ducc> Unpin for PropertyDescriptor<'ducc>

impl<'ducc> UnwindSafe for PropertyDescriptor<'ducc>

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, 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.