Struct boa::property::PropertyDescriptorBuilder
source · [−]pub struct PropertyDescriptorBuilder { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Clone for PropertyDescriptorBuilder
impl Clone for PropertyDescriptorBuilder
sourcefn clone(&self) -> PropertyDescriptorBuilder
fn clone(&self) -> PropertyDescriptorBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PropertyDescriptorBuilder
impl Debug for PropertyDescriptorBuilder
sourceimpl Default for PropertyDescriptorBuilder
impl Default for PropertyDescriptorBuilder
sourcefn default() -> PropertyDescriptorBuilder
fn default() -> PropertyDescriptorBuilder
Returns the “default value” for a type. Read more
sourceimpl From<PropertyDescriptorBuilder> for PropertyDescriptor
impl From<PropertyDescriptorBuilder> for PropertyDescriptor
sourcefn from(builder: PropertyDescriptorBuilder) -> Self
fn from(builder: PropertyDescriptorBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for PropertyDescriptorBuilder
impl !Send for PropertyDescriptorBuilder
impl !Sync for PropertyDescriptorBuilder
impl Unpin for PropertyDescriptorBuilder
impl !UnwindSafe for PropertyDescriptorBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more