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 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 is_construct_call(&self) -> bool
pub fn is_construct_call(&self) -> bool
Returns true if this is a construct call, i.e., if the function was
called with the new operator.
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> Freeze for FunctionCallbackArguments<'s>
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