pub struct FunctionCallbackArguments<'s>(_);

Implementations

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.

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]).

For construct calls, this returns the “new.target” value.

Returns the receiver. This corresponds to the “this” value.

Returns the data argument specified when creating the callback.

The number of available arguments.

Accessor for the available arguments. Returns undefined if the index is out of bounds.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.