Struct v8::PropertyDescriptor
source · #[repr(transparent)]pub struct PropertyDescriptor(/* private fields */);
Implementations§
source§impl PropertyDescriptor
impl PropertyDescriptor
pub fn new() -> Self
pub fn new_from_value(value: Local<'_, Value>) -> Self
pub fn new_from_value_writable(value: Local<'_, Value>, writable: bool) -> Self
pub fn new_from_get_set(get: Local<'_, Value>, set: Local<'_, Value>) -> Self
pub fn configurable(&self) -> bool
pub fn enumerable(&self) -> bool
pub fn writable(&self) -> bool
pub fn value(&self) -> Local<'_, Value>
pub fn get(&self) -> Local<'_, Value>
pub fn set(&self) -> Local<'_, Value>
pub fn has_configurable(&self) -> bool
pub fn has_enumerable(&self) -> bool
pub fn has_writable(&self) -> bool
pub fn has_value(&self) -> bool
pub fn has_get(&self) -> bool
pub fn has_set(&self) -> bool
pub fn set_enumerable(&mut self, enumerable: bool)
pub fn set_configurable(&mut self, configurable: bool)
Trait Implementations§
source§impl Default for PropertyDescriptor
impl Default for PropertyDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for PropertyDescriptor
impl Send for PropertyDescriptor
impl Sync for PropertyDescriptor
impl Unpin for PropertyDescriptor
impl UnwindSafe for PropertyDescriptor
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