Trait bpxe::language::Engine [−][src]
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]
&'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,
Evaluates a program using an engine for a given language
Implementors
impl Engine<FormalExpression> for Rhai
[src]
fn eval<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 self,
expr: &'life1 FormalExpression,
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]
&'life0 self,
expr: &'life1 FormalExpression,
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,
impl Engine<FormalExpression> for MultiLanguageEngine
[src]
fn eval<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 self,
code: &'life1 FormalExpression,
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]
&'life0 self,
code: &'life1 FormalExpression,
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,
impl Engine<ScriptTask> for Rhai
[src]
fn eval<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 self,
expr: &'life1 ScriptTask,
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]
&'life0 self,
expr: &'life1 ScriptTask,
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,
impl Engine<ScriptTask> for MultiLanguageEngine
[src]
fn eval<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 self,
code: &'life1 ScriptTask,
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]
&'life0 self,
code: &'life1 ScriptTask,
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,