Struct v8::NamedPropertyHandlerConfiguration
source · 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<AccessorNameGetterCallback<'s>>) -> Self
pub fn setter(self, setter: impl MapFnTo<AccessorNameSetterCallback<'s>>) -> Self
pub fn query(self, query: impl MapFnTo<AccessorNameGetterCallback<'s>>) -> Self
pub fn deleter(
self,
deleter: impl MapFnTo<AccessorNameGetterCallback<'s>>
) -> Self
pub fn enumerator(
self,
enumerator: impl MapFnTo<PropertyEnumeratorCallback<'s>>
) -> Self
pub fn descriptor(
self,
descriptor: impl MapFnTo<AccessorNameGetterCallback<'s>>
) -> Self
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