Crate typst_eval

Source
Expand description

Typst’s code interpreter.

Structs§

CapturesVisitor
A visitor that determines which variables to capture for a closure.
Vm
A virtual machine.

Enums§

EvalMode
In which mode to evaluate a string.
FlowEvent
A control flow event that occurred during evaluation.

Traits§

Eval
Evaluate an expression.

Functions§

eval
Evaluate a source file and return the resulting module.
eval_closure
Call the function in the context with the arguments.
eval_string
Evaluate a string as code and return the resulting value.
import
Process an import of a package or file relative to the current location.