Struct v8::ReturnValue
source · [−]#[repr(C)]pub struct ReturnValue<'cb>(_, _);
Implementations
sourceimpl<'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.
Trait Implementations
Auto Trait Implementations
impl<'cb> RefUnwindSafe for ReturnValue<'cb>
impl<'cb> !Send for ReturnValue<'cb>
impl<'cb> !Sync for ReturnValue<'cb>
impl<'cb> Unpin for ReturnValue<'cb>
impl<'cb> UnwindSafe for ReturnValue<'cb>
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