[][src]Struct rusty_v8::ReturnValue

#[repr(C)]pub struct ReturnValue<'cb>(_, _);

Implementations

impl<'cb> ReturnValue<'cb>[src]

In V8 ReturnValue<> has a type parameter, but it turns out that in most of the APIs it's ReturnValue and for our purposes we currently don't need other types. So for now it's a simplified version.

pub fn set(&mut self, value: Local<Value>)[src]

pub fn get<'s>(&self, scope: &mut HandleScope<'s>) -> Local<'s, Value>[src]

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.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.