Skip to main content

Crate openformula_kernel

Crate openformula_kernel 

Source
Expand description

Typed calculation semantics shared by Tanu Markdown, TSQ1, and Kitu.

This crate implements a bounded OpenFormula 1.4 function-semantics subset. It deliberately does not parse formula source or resolve references.

Modules§

extensions
Dependency-light example extensions used by Kitu integrations. Example Kitu extension registration.

Structs§

CalcError
A typed calculation error without parser- or storage-specific location data.
FunctionMetadata
Compatibility information attached to every registry entry.
FunctionRegistry
Case-insensitive registry with separate standard and extension namespaces.
Number
A finite calculation number with a deliberately private representation.
PureContext
A context that rejects every impure capability.

Enums§

Argument
An evaluated function argument retaining whether values came from a range.
CalcErrorKind
Stable categories for calculation failures.
CoercionPolicy
Controls host-selected implicit conversions.
FunctionNamespace
Whether a registered function is standard or explicitly namespaced.
Value
A scalar value understood by the calculation kernel.

Traits§

EvalContext
Host-provided capabilities for impure or time-dependent functions.

Functions§

coerce_logical
Convert a scalar to a logical under the selected host policy.
coerce_number
Convert a scalar to a number under the selected host policy.

Type Aliases§

CalcResult
Result returned by calculation-kernel operations.
FunctionHandler
Function pointer accepted by the registry for standard and extension calls.