Struct jrsonnet_evaluator::EvaluationState[][src]

pub struct EvaluationState(_);
Expand description

Maintains stack trace and import resolution

Implementations

Parses and adds file as loaded

Adds file by source code and parsed expr

Adds standard library global variable (std) to this evaluator

Creates context with all passed global variables

Executes code creating a new stack frame

Runs passed function in state (required if function needs to modify stack trace)

If passed value is function then call with set TLA

Internals

Raw methods evaluate passed values but don’t perform TLA execution

Parses and evaluates the given snippet

Evaluates the parsed expression

Settings utilities

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.