Struct v8::ReturnValue
source · #[repr(C)]pub struct ReturnValue<'cb>(_, _);
Implementations§
source§impl<'cb> ReturnValue<'cb>
impl<'cb> ReturnValue<'cb>
In V8 ReturnValue<> has a type parameter, but
it turns out that in most of the APIs it’s ReturnValue
pub unsafe fn from_function_callback_info(
info: *const FunctionCallbackInfo
) -> Self
pub fn set(&mut self, value: Local<'_, Value>)
pub fn set_bool(&mut self, value: bool)
pub fn set_int32(&mut self, value: i32)
pub fn set_uint32(&mut self, value: u32)
pub fn set_double(&mut self, value: f64)
pub fn set_null(&mut self)
pub fn set_undefined(&mut self)
pub fn set_empty_string(&mut self)
sourcepub fn get<'s>(&self, scope: &mut HandleScope<'s>) -> Local<'s, Value>
pub fn get<'s>(&self, scope: &mut HandleScope<'s>) -> Local<'s, Value>
Getter. Creates a new Local<> so it comes with a certain performance hit. If the ReturnValue was not yet set, this will return the undefined value.