[−][src]Struct ducc::PropertyDescriptor
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,