Struct v8::IndexedPropertyHandlerConfiguration
source · pub struct IndexedPropertyHandlerConfiguration<'s> { /* private fields */ }
Implementations§
source§impl<'s> IndexedPropertyHandlerConfiguration<'s>
impl<'s> IndexedPropertyHandlerConfiguration<'s>
pub fn new() -> Self
pub fn is_some(&self) -> bool
pub fn getter( self, getter: impl MapFnTo<IndexedPropertyGetterCallback<'s>>, ) -> Self
pub fn getter_raw(self, getter: IndexedPropertyGetterCallback<'s>) -> Self
pub fn setter( self, setter: impl MapFnTo<IndexedPropertySetterCallback<'s>>, ) -> Self
pub fn setter_raw(self, setter: IndexedPropertySetterCallback<'s>) -> Self
pub fn query( self, query: impl MapFnTo<IndexedPropertyQueryCallback<'s>>, ) -> Self
pub fn query_raw(self, query: IndexedPropertyQueryCallback<'s>) -> Self
pub fn deleter( self, deleter: impl MapFnTo<IndexedPropertyDeleterCallback<'s>>, ) -> Self
pub fn deleter_raw(self, deleter: IndexedPropertyDeleterCallback<'s>) -> Self
pub fn enumerator( self, enumerator: impl MapFnTo<IndexedPropertyEnumeratorCallback<'s>>, ) -> Self
pub fn enumerator_raw( self, enumerator: IndexedPropertyEnumeratorCallback<'s>, ) -> Self
pub fn definer( self, definer: impl MapFnTo<IndexedPropertyDefinerCallback<'s>>, ) -> Self
pub fn definer_raw(self, definer: IndexedPropertyDefinerCallback<'s>) -> Self
pub fn descriptor( self, descriptor: impl MapFnTo<IndexedPropertyDescriptorCallback<'s>>, ) -> Self
pub fn descriptor_raw( self, descriptor: IndexedPropertyDescriptorCallback<'s>, ) -> Self
sourcepub fn data(self, data: Local<'s, Value>) -> Self
pub fn data(self, data: Local<'s, Value>) -> Self
Set the associated data. The default is no associated data.
sourcepub fn flags(self, flags: PropertyHandlerFlags) -> Self
pub fn flags(self, flags: PropertyHandlerFlags) -> Self
Set the property handler flags. The default is PropertyHandlerFlags::NONE.
Trait Implementations§
source§impl<'s> Default for IndexedPropertyHandlerConfiguration<'s>
impl<'s> Default for IndexedPropertyHandlerConfiguration<'s>
source§fn default() -> IndexedPropertyHandlerConfiguration<'s>
fn default() -> IndexedPropertyHandlerConfiguration<'s>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'s> Freeze for IndexedPropertyHandlerConfiguration<'s>
impl<'s> RefUnwindSafe for IndexedPropertyHandlerConfiguration<'s>
impl<'s> !Send for IndexedPropertyHandlerConfiguration<'s>
impl<'s> !Sync for IndexedPropertyHandlerConfiguration<'s>
impl<'s> Unpin for IndexedPropertyHandlerConfiguration<'s>
impl<'s> UnwindSafe for IndexedPropertyHandlerConfiguration<'s>
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