Struct v8::FunctionCallbackArguments
source · [−]pub struct FunctionCallbackArguments<'s> { /* private fields */ }
Implementations
sourceimpl<'s> FunctionCallbackArguments<'s>
impl<'s> FunctionCallbackArguments<'s>
sourcepub fn this(&self) -> Local<'s, Object>
pub fn this(&self) -> Local<'s, Object>
Returns the receiver. This corresponds to the “this” value.
sourcepub fn data(&self) -> Option<Local<'s, Value>>
pub fn data(&self) -> Option<Local<'s, Value>>
Returns the data argument specified when creating the callback.
sourcepub fn get(&self, i: int) -> Local<'s, Value>
pub fn get(&self, i: int) -> Local<'s, Value>
Accessor for the available arguments. Returns undefined
if the index is
out of bounds.
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.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more