Skip to main content

Module eval

Module eval 

Source
Expand description

The formula evaluator.

Expressions evaluate to Ev: a value, a reference (one or more areas, kept unresolved so ROW, OFFSET, INDEX, : and friends can work on references) or a lambda. Cell reads go through Host, which lets the recalculation engine evaluate dirty precedents on demand.

Structs§

Area
Evaluator
Lambda

Enums§

Ev

Constants§

MAX_CELLS
Largest array a reference may expand to.
SPECIAL_FUNCTIONS
Names of functions the evaluator implements itself (merged into the function list for UI).

Traits§

Host
What the evaluator needs from its surroundings.

Functions§

binary_values
is_known_function
precedents
Collects the static references of an expression with their sheets resolved; dynamic is set when the formula uses INDIRECT/OFFSET/names/tables whose targets can change.
r1c1_to_a1
Converts an R1C1 reference text to A1 (for INDIRECT(…, FALSE)). Ok(None) means the text is not R1C1; Err means it is R1C1 but points past the sheet.
resized_sum_range
The range SUMIF/AVERAGEIF add up: from the sum range’s top-left cell, as many rows and columns as the criteria range (height × width), cut off at the sheet’s edge.
zip2
Element-wise combination with Excel’s broadcasting.