[][src]Struct rusty_v8_m::scope::Scope

pub struct Scope<'s, S, P = ()> where
    S: ScopeDefinition<'s>, 
{ /* fields omitted */ }

A RAII scope wrapper object that will, when the enter() method is called, initialize and activate the guarded object.

Methods

impl<'s, S, P> Scope<'s, S, P> where
    S: ScopeDefinition<'s>, 
[src]

pub fn enter(&'s mut self) -> &'s mut Entered<'s, S, P>[src]

Initializes the guarded object and returns a mutable reference to it. A scope can only be entered once.

Trait Implementations

impl<'s, X> From<&'s PromiseRejectMessage<'s>> for Scope<'s, CallbackScope<X>>[src]

impl<'s, X> From<&'s mut Isolate> for Scope<'s, CallbackScope<X>>[src]

impl<'s, X, T> From<Local<'s, T>> for Scope<'s, CallbackScope<X>> where
    Local<'s, T>: GetRawIsolate, 
[src]

Auto Trait Implementations

impl<'s, S, P> RefUnwindSafe for Scope<'s, S, P> where
    P: RefUnwindSafe,
    S: RefUnwindSafe,
    <S as ScopeDefinition<'s>>::Args: RefUnwindSafe

impl<'s, S, P = ()> !Send for Scope<'s, S, P>

impl<'s, S, P = ()> !Sync for Scope<'s, S, P>

impl<'s, S, P> Unpin for Scope<'s, S, P> where
    S: Unpin,
    <S as ScopeDefinition<'s>>::Args: Unpin

impl<'s, S, P = ()> !UnwindSafe for Scope<'s, S, P>

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.