Trait bpxe::language::Engine[][src]

pub trait Engine<Expr>: EngineInfo + EngineContextProvider + Send + Sync where
    Expr: Send + Sync + Unpin + 'static, 
{ #[must_use] fn eval<'life0, 'life1, 'life2, 'async_trait, T>(
        &'life0 self,
        code: &'life1 Expr,
        context: &'life2 mut Self::Context
    ) -> Pin<Box<dyn Future<Output = Result<T, EvaluationError>> + Send + 'async_trait>>
    where
        T: Send + Sync + Clone + 'static,
        T: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Language for expressions and/or scripts

Required methods

#[must_use]fn eval<'life0, 'life1, 'life2, 'async_trait, T>(
    &'life0 self,
    code: &'life1 Expr,
    context: &'life2 mut Self::Context
) -> Pin<Box<dyn Future<Output = Result<T, EvaluationError>> + Send + 'async_trait>> where
    T: Send + Sync + Clone + 'static,
    T: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

Evaluates a program using an engine for a given language

Loading content...

Implementors

impl Engine<FormalExpression> for Rhai[src]

impl Engine<FormalExpression> for MultiLanguageEngine[src]

impl Engine<ScriptTask> for Rhai[src]

impl Engine<ScriptTask> for MultiLanguageEngine[src]

Loading content...