[][src]Trait picolang::commands::execution::ValueExecution

pub trait ValueExecution {
    fn run_with_context(
        &self,
        pico_rule: &PicoRules,
        runtime: &mut PicoRuntime<'_>,
        ctx: &mut PicoContext
    ) -> MyResult<PicoValue> { ... } }

Provided methods

fn run_with_context(
    &self,
    pico_rule: &PicoRules,
    runtime: &mut PicoRuntime<'_>,
    ctx: &mut PicoContext
) -> MyResult<PicoValue>

Evaluates a value within the context of a PicoRule, variables namespaces and the current context

Arguments

  • pico_rule - The rule file thats being used
  • runtime - PicoRuntime
  • ctx - the context, hold the initial JSON and any local variables
Loading content...

Implementors

impl ValueExecution for ValueProducer[src]

Produce a PicoValue

impl ValueExecution for Var[src]

impl ValueExecution for ConCat[src]

impl ValueExecution for Extract[src]

impl ValueExecution for LiteralI64[src]

impl ValueExecution for LiteralString[src]

impl ValueExecution for Pointer[src]

impl ValueExecution for Slice[src]

impl ValueExecution for TableLookup[src]

impl ValueExecution for VarLookup[src]

impl ValueExecution for PicoValue[src]

Loading content...