Skip to main content

Crate pine_interpreter

Crate pine_interpreter 

Source

Structs§

Builtin
A callable builtin together with the arguments it accepts, so semantic analysis can reject a bad call without running it. Both come from the same #[derive(BuiltinFunction)], so they cannot drift apart.
BuiltinSignature
The parameters a builtin accepts, in positional order.
FunctionCallArgs
Container for function call arguments including type parameters
Interpreter
The interpreter executes a program with a given bar
Param
One parameter of a builtin.
Series
Represents a time series with an identifier and current value

Enums§

EvaluatedArg
Evaluated function argument
Num
A Pine number: either an int or a float.
ParamType
The kind of value a parameter accepts, taken from the builtin’s field type.
RuntimeError
Value
Value types in the interpreter

Traits§

LibraryLoader
Loads the source of a library by its import path.

Type Aliases§

BuiltinFn
Type signature for builtin functions (can be function pointers or closures)
MapEntries
The insertion-ordered key/value pairs backing a Value::Map.
ObjectValueFn
The lazy scalar an object carries, so a single name can be both a namespace and a value: dayofweek.monday reads a member while bare dayofweek invokes this to get the current day. Computed from live interpreter state on each use (never called with ()), so there is no per-bar value to keep refreshed.
PerBarAdvance