Struct v8::FunctionCallbackArguments
source · pub struct FunctionCallbackArguments<'s>(/* private fields */);
Implementations§
source§impl<'s> FunctionCallbackArguments<'s>
impl<'s> FunctionCallbackArguments<'s>
pub fn from_function_callback_info(info: &'s FunctionCallbackInfo) -> Self
sourcepub unsafe fn get_isolate(&mut self) -> &mut Isolate
pub unsafe fn get_isolate(&mut self) -> &mut Isolate
SAFETY: caller must guarantee that no other references to the isolate are
accessible. Specifically, if an open CallbackScope or HandleScope exists
in the current function, FunctionCallbackArguments::get_isolate()
should
not be called.
sourcepub fn holder(&self) -> Local<'s, Object>
pub fn holder(&self) -> Local<'s, Object>
If the callback was created without a Signature, this is the same value as
this()
. If there is a signature, and the signature didn’t match this()
but one of its hidden prototypes, this will be the respective hidden
prototype.
Note that this is not the prototype of this()
on which the accessor
referencing this callback was found (which in V8 internally is often
referred to as holder [sic]).
sourcepub fn new_target(&self) -> Local<'s, Value>
pub fn new_target(&self) -> Local<'s, Value>
For construct calls, this returns the “new.target” value.
sourcepub fn this(&self) -> Local<'s, Object>
pub fn this(&self) -> Local<'s, Object>
Returns the receiver. This corresponds to the “this” value.
Trait Implementations§
Auto Trait Implementations§
impl<'s> RefUnwindSafe for FunctionCallbackArguments<'s>
impl<'s> !Send for FunctionCallbackArguments<'s>
impl<'s> !Sync for FunctionCallbackArguments<'s>
impl<'s> Unpin for FunctionCallbackArguments<'s>
impl<'s> UnwindSafe for FunctionCallbackArguments<'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