pub struct PropertyDescriptorBuilder { /* private fields */ }Available on crate feature
Runtime only.Implementations§
Source§impl PropertyDescriptorBuilder
impl PropertyDescriptorBuilder
Sourcepub fn value(&mut self, v: RemoteObject) -> &mut Self
pub fn value(&mut self, v: RemoteObject) -> &mut Self
The value associated with the property.
Sourcepub fn writable(&mut self, v: bool) -> &mut Self
pub fn writable(&mut self, v: bool) -> &mut Self
True if the value associated with the property may be changed (data descriptors only).
Sourcepub fn get(&mut self, v: RemoteObject) -> &mut Self
pub fn get(&mut self, v: RemoteObject) -> &mut Self
A function which serves as a getter for the property, or undefined if there is no getter
(accessor descriptors only).
Sourcepub fn set(&mut self, v: RemoteObject) -> &mut Self
pub fn set(&mut self, v: RemoteObject) -> &mut Self
A function which serves as a setter for the property, or undefined if there is no setter
(accessor descriptors only).
Sourcepub fn configurable(&mut self, v: bool) -> &mut Self
pub fn configurable(&mut self, v: bool) -> &mut Self
True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
Sourcepub fn enumerable(&mut self, v: bool) -> &mut Self
pub fn enumerable(&mut self, v: bool) -> &mut Self
True if this property shows up during enumeration of the properties on the corresponding object.
Sourcepub fn was_thrown(&mut self, v: bool) -> &mut Self
pub fn was_thrown(&mut self, v: bool) -> &mut Self
True if the result was thrown during the evaluation.
Sourcepub fn symbol(&mut self, v: RemoteObject) -> &mut Self
pub fn symbol(&mut self, v: RemoteObject) -> &mut Self
Property symbol object, if the property is of the symbol type.
pub fn build(&mut self) -> Result<PropertyDescriptor, &'static str>
Trait Implementations§
Source§impl Clone for PropertyDescriptorBuilder
impl Clone for PropertyDescriptorBuilder
Source§fn clone(&self) -> PropertyDescriptorBuilder
fn clone(&self) -> PropertyDescriptorBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PropertyDescriptorBuilder
impl Debug for PropertyDescriptorBuilder
Auto Trait Implementations§
impl Freeze for PropertyDescriptorBuilder
impl RefUnwindSafe for PropertyDescriptorBuilder
impl Send for PropertyDescriptorBuilder
impl Sync for PropertyDescriptorBuilder
impl Unpin for PropertyDescriptorBuilder
impl UnwindSafe for PropertyDescriptorBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more