pub struct PropertyDescriptorBuilder { /* private fields */ }Implementations§
Source§impl PropertyDescriptorBuilder
impl PropertyDescriptorBuilder
pub fn new() -> Self
pub fn value<V: Into<JsValue>>(self, value: V) -> Self
pub fn writable(self, writable: bool) -> Self
pub fn get<V: Into<JsValue>>(self, get: V) -> Self
pub fn set<V: Into<JsValue>>(self, set: V) -> Self
pub fn maybe_enumerable(self, enumerable: Option<bool>) -> Self
pub fn maybe_configurable(self, configurable: Option<bool>) -> Self
pub fn maybe_value<V: Into<JsValue>>(self, value: Option<V>) -> Self
pub fn maybe_writable(self, writable: Option<bool>) -> Self
pub fn maybe_get<V: Into<JsValue>>(self, get: Option<V>) -> Self
pub fn maybe_set<V: Into<JsValue>>(self, set: Option<V>) -> Self
pub fn enumerable(self, enumerable: bool) -> Self
pub fn configurable(self, configurable: bool) -> Self
pub fn complete_with_defaults(self) -> Self
pub fn inner(&self) -> &PropertyDescriptor
pub fn build(self) -> PropertyDescriptor
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
Source§impl Default for PropertyDescriptorBuilder
impl Default for PropertyDescriptorBuilder
Source§fn default() -> PropertyDescriptorBuilder
fn default() -> PropertyDescriptorBuilder
Returns the “default value” for a type. Read more
Source§impl From<PropertyDescriptorBuilder> for PropertyDescriptor
impl From<PropertyDescriptorBuilder> for PropertyDescriptor
Source§fn from(builder: PropertyDescriptorBuilder) -> Self
fn from(builder: PropertyDescriptorBuilder) -> Self
Converts to this type from the input type.
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