[][src]Trait gluon::compiler_pipeline::Executable

pub trait Executable<'vm, Extra> {
    type Expr;
    fn run_expr<T>(
        self,
        compiler: &mut Compiler,
        vm: T,
        name: &str,
        expr_str: &str,
        arg: Extra
    ) -> BoxFuture<'vm, ExecuteValue<RootedThread, Self::Expr>, Error>
    where
        T: Send + VmRoot<'vm>
;
fn load_script<T>(
        self,
        compiler: &mut Compiler,
        vm: T,
        filename: &str,
        expr_str: &str,
        arg: Extra
    ) -> BoxFuture<'vm, (), Error>
    where
        T: Send + VmRoot<'vm>
; }

Associated Types

type Expr

Loading content...

Required methods

fn run_expr<T>(
    self,
    compiler: &mut Compiler,
    vm: T,
    name: &str,
    expr_str: &str,
    arg: Extra
) -> BoxFuture<'vm, ExecuteValue<RootedThread, Self::Expr>, Error> where
    T: Send + VmRoot<'vm>, 

fn load_script<T>(
    self,
    compiler: &mut Compiler,
    vm: T,
    filename: &str,
    expr_str: &str,
    arg: Extra
) -> BoxFuture<'vm, (), Error> where
    T: Send + VmRoot<'vm>, 

Loading content...

Implementors

impl<'vm, 'de, D> Executable<'vm, ()> for Precompiled<D> where
    D: Deserializer<'de>, 
[src]

type Expr = ()

impl<'vm, C, Extra> Executable<'vm, Extra> for C where
    C: Compileable<Extra>,
    C::Expr: BorrowMut<SpannedExpr<Symbol>> + Send + 'vm, 
[src]

type Expr = C::Expr

impl<'vm, E> Executable<'vm, ()> for CompileValue<E> where
    E: BorrowMut<SpannedExpr<Symbol>> + Send + 'vm, 
[src]

type Expr = E

Loading content...