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>) -> Self
pub fn getter_raw(self, getter: IndexedPropertyGetterCallback) -> Self
pub fn setter(self, setter: impl MapFnTo<IndexedPropertySetterCallback>) -> Self
pub fn setter_raw(self, setter: IndexedPropertySetterCallback) -> Self
pub fn query(self, query: impl MapFnTo<IndexedPropertyQueryCallback>) -> Self
pub fn query_raw(self, query: IndexedPropertyQueryCallback) -> Self
pub fn deleter( self, deleter: impl MapFnTo<IndexedPropertyDeleterCallback>, ) -> Self
pub fn deleter_raw(self, deleter: IndexedPropertyDeleterCallback) -> Self
pub fn enumerator( self, enumerator: impl MapFnTo<IndexedPropertyEnumeratorCallback>, ) -> Self
pub fn enumerator_raw( self, enumerator: IndexedPropertyEnumeratorCallback, ) -> Self
pub fn definer( self, definer: impl MapFnTo<IndexedPropertyDefinerCallback>, ) -> Self
pub fn definer_raw(self, definer: IndexedPropertyDefinerCallback) -> Self
pub fn descriptor( self, descriptor: impl MapFnTo<IndexedPropertyDescriptorCallback>, ) -> Self
pub fn descriptor_raw( self, descriptor: IndexedPropertyDescriptorCallback, ) -> 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