pub struct ExpressionEvaluator { /* private fields */ }
Expand description
Expression evaluator context
Implementations§
Source§impl ExpressionEvaluator
impl ExpressionEvaluator
Sourcepub fn new(imports: Arc<ImportTable>, exports: Arc<ExportTable>) -> Self
pub fn new(imports: Arc<ImportTable>, exports: Arc<ExportTable>) -> Self
Create a new expression evaluator
Sourcepub fn evaluate(
&self,
expr: Expression,
) -> Pin<Box<dyn Future<Output = Result<Value, EvaluatorError>> + Send + '_>>
pub fn evaluate( &self, expr: Expression, ) -> Pin<Box<dyn Future<Output = Result<Value, EvaluatorError>> + Send + '_>>
Evaluate an expression to produce a value
Auto Trait Implementations§
impl Freeze for ExpressionEvaluator
impl !RefUnwindSafe for ExpressionEvaluator
impl Send for ExpressionEvaluator
impl Sync for ExpressionEvaluator
impl Unpin for ExpressionEvaluator
impl !UnwindSafe for ExpressionEvaluator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more