pub struct NamedPropertyHandlerConfiguration<'s> { /* private fields */ }Implementations§
Source§impl<'s> NamedPropertyHandlerConfiguration<'s>
impl<'s> NamedPropertyHandlerConfiguration<'s>
pub fn new() -> Self
pub fn is_some(&self) -> bool
pub fn getter(self, getter: impl MapFnTo<NamedPropertyGetterCallback>) -> Self
pub fn getter_raw(self, getter: NamedPropertyGetterCallback) -> Self
pub fn setter(self, setter: impl MapFnTo<NamedPropertySetterCallback>) -> Self
pub fn setter_raw(self, setter: NamedPropertySetterCallback) -> Self
pub fn query(self, query: impl MapFnTo<NamedPropertyQueryCallback>) -> Self
pub fn query_raw(self, query: NamedPropertyQueryCallback) -> Self
pub fn deleter( self, deleter: impl MapFnTo<NamedPropertyDeleterCallback>, ) -> Self
pub fn deleter_raw(self, deleter: NamedPropertyDeleterCallback) -> Self
pub fn enumerator( self, enumerator: impl MapFnTo<NamedPropertyEnumeratorCallback>, ) -> Self
pub fn enumerator_raw(self, enumerator: NamedPropertyEnumeratorCallback) -> Self
pub fn definer( self, definer: impl MapFnTo<NamedPropertyDefinerCallback>, ) -> Self
pub fn definer_raw(self, definer: NamedPropertyDefinerCallback) -> Self
pub fn descriptor( self, descriptor: impl MapFnTo<NamedPropertyDescriptorCallback>, ) -> Self
pub fn descriptor_raw(self, descriptor: NamedPropertyDescriptorCallback) -> 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 NamedPropertyHandlerConfiguration<'s>
impl<'s> Default for NamedPropertyHandlerConfiguration<'s>
Source§fn default() -> NamedPropertyHandlerConfiguration<'s>
fn default() -> NamedPropertyHandlerConfiguration<'s>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'s> Freeze for NamedPropertyHandlerConfiguration<'s>
impl<'s> RefUnwindSafe for NamedPropertyHandlerConfiguration<'s>
impl<'s> !Send for NamedPropertyHandlerConfiguration<'s>
impl<'s> !Sync for NamedPropertyHandlerConfiguration<'s>
impl<'s> Unpin for NamedPropertyHandlerConfiguration<'s>
impl<'s> UnwindSafe for NamedPropertyHandlerConfiguration<'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