#[repr(C)]pub struct FunctionCallbackInfoParts<'cb> {
pub isolate: UnsafeRawIsolatePtr,
pub return_value: ReturnValue<'cb>,
pub data: Local<'cb, Value>,
pub length: int,
}Expand description
Values commonly needed at the start of a function callback.
This lets raw callbacks fetch the isolate, return value, callback data, and
argument length with one FFI call. The returned parts can also seed
FunctionCallbackArguments and CallbackScope
without re-reading those values from V8.
Fields§
§isolate: UnsafeRawIsolatePtr§return_value: ReturnValue<'cb>§data: Local<'cb, Value>§length: intTrait Implementations§
Auto Trait Implementations§
impl<'cb> Freeze for FunctionCallbackInfoParts<'cb>
impl<'cb> RefUnwindSafe for FunctionCallbackInfoParts<'cb>
impl<'cb> !Send for FunctionCallbackInfoParts<'cb>
impl<'cb> !Sync for FunctionCallbackInfoParts<'cb>
impl<'cb> Unpin for FunctionCallbackInfoParts<'cb>
impl<'cb> UnsafeUnpin for FunctionCallbackInfoParts<'cb>
impl<'cb> UnwindSafe for FunctionCallbackInfoParts<'cb>
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