pub struct PropertyCallbackArguments<'s>(/* private fields */);Implementations§
Source§impl<'s> PropertyCallbackArguments<'s>
impl<'s> PropertyCallbackArguments<'s>
Sourcepub fn holder(&self) -> Local<'s, Object>
pub fn holder(&self) -> Local<'s, Object>
Returns the object in the prototype chain of the receiver that has the
interceptor. Suppose you have x and its prototype is y, and y
has an interceptor. Then info.This() is x and info.Holder() is y.
In case the property is installed on the global object the Holder()
would return the global proxy.
Sourcepub fn data(&self) -> Local<'s, Value>
pub fn data(&self) -> Local<'s, Value>
Returns the data set in the configuration, i.e., in
NamedPropertyHandlerConfiguration or
IndexedPropertyHandlerConfiguration.
Sourcepub fn should_throw_on_error(&self) -> bool
pub fn should_throw_on_error(&self) -> bool
Returns true if the intercepted function should throw if an error
occurs. Usually, true corresponds to 'use strict'.
Always false when intercepting Reflect.set() independent of the
language mode.
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for PropertyCallbackArguments<'s>
impl<'s> RefUnwindSafe for PropertyCallbackArguments<'s>
impl<'s> !Send for PropertyCallbackArguments<'s>
impl<'s> !Sync for PropertyCallbackArguments<'s>
impl<'s> Unpin for PropertyCallbackArguments<'s>
impl<'s> UnsafeUnpin for PropertyCallbackArguments<'s>
impl<'s> UnwindSafe for PropertyCallbackArguments<'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