pub struct NamedPropertyHandlerConfiguration<'s> { /* private fields */ }Implementations§
Source§impl<'s> NamedPropertyHandlerConfiguration<'s>
impl<'s> NamedPropertyHandlerConfiguration<'s>
pub fn new() -> NamedPropertyHandlerConfiguration<'s>
pub fn is_some(&self) -> bool
pub fn getter( self, getter: impl MapFnTo<extern "C" fn(Local<'s, Name>, *const PropertyCallbackInfo)>, ) -> NamedPropertyHandlerConfiguration<'s>
pub fn getter_raw( self, getter: extern "C" fn(Local<'s, Name>, *const PropertyCallbackInfo), ) -> NamedPropertyHandlerConfiguration<'s>
pub fn setter( self, setter: impl MapFnTo<extern "C" fn(Local<'s, Name>, Local<'s, Value>, *const PropertyCallbackInfo)>, ) -> NamedPropertyHandlerConfiguration<'s>
pub fn setter_raw( self, setter: extern "C" fn(Local<'s, Name>, Local<'s, Value>, *const PropertyCallbackInfo), ) -> NamedPropertyHandlerConfiguration<'s>
pub fn query( self, query: impl MapFnTo<extern "C" fn(Local<'s, Name>, *const PropertyCallbackInfo)>, ) -> NamedPropertyHandlerConfiguration<'s>
pub fn query_raw( self, query: extern "C" fn(Local<'s, Name>, *const PropertyCallbackInfo), ) -> NamedPropertyHandlerConfiguration<'s>
pub fn deleter( self, deleter: impl MapFnTo<extern "C" fn(Local<'s, Name>, *const PropertyCallbackInfo)>, ) -> NamedPropertyHandlerConfiguration<'s>
pub fn deleter_raw( self, deleter: extern "C" fn(Local<'s, Name>, *const PropertyCallbackInfo), ) -> NamedPropertyHandlerConfiguration<'s>
pub fn enumerator( self, enumerator: impl MapFnTo<extern "C" fn(*const PropertyCallbackInfo)>, ) -> NamedPropertyHandlerConfiguration<'s>
pub fn enumerator_raw( self, enumerator: extern "C" fn(*const PropertyCallbackInfo), ) -> NamedPropertyHandlerConfiguration<'s>
pub fn definer( self, definer: impl MapFnTo<extern "C" fn(Local<'s, Name>, *const PropertyDescriptor, *const PropertyCallbackInfo)>, ) -> NamedPropertyHandlerConfiguration<'s>
pub fn definer_raw( self, definer: extern "C" fn(Local<'s, Name>, *const PropertyDescriptor, *const PropertyCallbackInfo), ) -> NamedPropertyHandlerConfiguration<'s>
pub fn descriptor( self, descriptor: impl MapFnTo<extern "C" fn(Local<'s, Name>, *const PropertyCallbackInfo)>, ) -> NamedPropertyHandlerConfiguration<'s>
pub fn descriptor_raw( self, descriptor: extern "C" fn(Local<'s, Name>, *const PropertyCallbackInfo), ) -> NamedPropertyHandlerConfiguration<'s>
Sourcepub fn data(
self,
data: Local<'s, Value>,
) -> NamedPropertyHandlerConfiguration<'s>
pub fn data( self, data: Local<'s, Value>, ) -> NamedPropertyHandlerConfiguration<'s>
Set the associated data. The default is no associated data.
Sourcepub fn flags(
self,
flags: PropertyHandlerFlags,
) -> NamedPropertyHandlerConfiguration<'s>
pub fn flags( self, flags: PropertyHandlerFlags, ) -> NamedPropertyHandlerConfiguration<'s>
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