Project

EarthSciAST

The EarthSciML Abstract Syntax Tree format: schema, operators, coupling, and five language bindings.

Contents

This is the documentation for the older version v0.15.1. For the latest release, see v0.17.0.

Rust API index

Every stable name Rust exports, and its extension seams.

Package: earthsci-ast 0.15.1

Documentation extracted with rustdoc JSON (rustdoc 1.101.0-nightly (21b707e3f 2026-09-30)), format_version 61.

Capability profiles: core, classification, simulation, runtime I/O.

Extension-tier names are on the Rust extension page .

Stable names

RustCanonicalKindSummary
add_couplingadd_couplingfunctionAdd a coupling entry to an ESM file
add_equationadd_equationfunctionAdd an equation to a model
add_reactionadd_reactionfunctionAdd a reaction to a reaction system
add_speciesadd_speciesfunctionAdd a species to a reaction system
add_variableadd_variablefunctionAdd a variable to a model
AffectEquationaffect_equationtypeEquation that modifies state/parameters when event fires
algebraic_unknownsalgebraic_unknownsfunctionUnknowns constrained only implicitly (H*H*SO4 ~ Ksp).
apply_dae_contractapply_dae_contractfunctionRun the RFC §12 DAE binding contract on esm in place and return the classification summary.
apply_scope_injectionsapply_scope_injectionsfunctionesm-spec §9.7.10 forms A + B: fold any scope-directed injection — a subsystem-ref edge’s injected import list (form A) or a coupling entry’s injection map (form B) — into the…
AssertionResultassertion_resulttypeOutcome of one §6.6.5 inline-test assertion evaluated through the simulation pathway.
brownian_parametersbrownian_parametersfunctionParameters whose update.kind is wiener — the SDE noise sources.
build_reference_graphbuild_reference_graphfunctionResolve the reference edges of one model value into a graph, against the
build_reference_graph_with_index_setsbuild_reference_graphfunctionDeprecated alias of build_reference_graph.
build_unit_envbuild_unit_envfunctionBuild a HashMap<String, Unit> environment from model variable metadata, together with a list of warnings for any variables whose declared unit string could not be parsed.
CadencecadencetypeThe cadence lattice (CONFORMANCE_SPEC.md §5.7.1): const ⊏ discrete ⊏ continuous.
CadenceErrorcadence_errorerrorA cadence-partition contract violation in a fixture or producer output (a wrong expect_cadence, a CONTINUOUS relational node, a from_faq cycle, a float topology key, or a…
callbackscallbacksfunctionThe callbacks declared on prob (§2.5.4).
CallbackSetcallback_settypeThe callbacks declared on a EsmProblem.
can_migratecan_migratefunctionWhether migrate supports this version pair — i.e. whether to_version is among supported_migration_targets``(from_version).
canonical_index_set_jsoncanonical_index_set_jsonfunctionCanonical byte form of an index set (CONFORMANCE_SPEC.md §5.5.3): the distinct rows, each tuple serialised as a JSON array, in §5.5.1 sorted order, as compact JSON (, /…
canonical_jsoncanonical_jsonfunctionEmit the canonical on-wire JSON form of an expression (§5.4.6).
canonicalizecanonicalizefunctionCanonicalize an Expr tree per RFC §5.4.
canonicalize_documentcanonicalize_documentfunctionThe document-level canonical step: every units string of a decoded document (the JSON value to_json writes and load_document reads) takes the canonical unit spelling…
CanonicalizeErrorcanonicalize_errorerrorErrors raised during canonicalization (per RFC §5.4.6 / §5.4.7).
compile_kernelscompile_kernelsfunctionCompile specs against prob’s (stripped) build (API_SPEC §5.8).
CompilercompilertypeWhich strategy builds a Problem’s right-hand side (API_SPEC §5.8, esm-libraries-spec §2.5.10).
CompilerReportcompiler_reporttypeWhat built a Problem’s right-hand side, per rule (API_SPEC §5.8).
component_existscomponent_existsfunctionCheck if a component exists in the ESM file
component_graphcomponent_graphfunctionBuild a component graph from an ESM file
ComponentGraphcomponent_graphtypeComponent graph representing model structure
ComponentNodecomponent_nodetypeNode in the component graph
composecomposefunctionConcatenate two callback sets into a new one.
constant_parametersconstant_parametersfunctionParameters with neither a distribution nor an update — plain constants.
containscontainsfunctionCheck if an expression contains a specific variable
ContinuousEventcontinuous_eventtypeContinuous event that fires on zero-crossings
ContributioncontributiontypeOne summand of a flattened equation’s right-hand side, with its authors (esm-libraries-spec §4.7.5, “Per-term provenance”).
convert_unitsconvert_unitsfunctionConvert between compatible units
CoordinatecoordinatetypeOne entry of the document-scoped EsmFile::coordinates registry (RFC streaming-output-sinks §8.3): marks an existing data array — or an inline literal vector — as a physical…
CouplingEdgecoupling_edgetypeEdge in the component graph
CouplingEntrycoupling_entrytypeCoupling entry with discriminated union based on type field
CouplingImportOptionscoupling_import_optionstypeOptions controlling how coupling_import refs are resolved at flatten.
CouplingRolecoupling_roletypeA coupling-library formal component role (esm-spec §10.9).
DaeInfodae_infotypeSummary of DAE classification stamped onto metadata.dae_info by discretize() per RFC §12.
DataSourcedata_sourcetypeGeneric, runtime-agnostic description of an external data source (esm-spec §8).
DataSourceBindingdata_source_bindingtypeBinds a parameter to ONE variable of a data_sources entry (esm-spec §8.5).
DataSourceDeterminismdata_source_determinismtypeReproducibility contract a loader advertises to bindings (esm-spec §8.9.2).
DataSourceKinddata_source_kindtypeStructural kind of a data loader dataset.
DataSourceLocationdata_source_locationtypeFile discovery configuration.
DataSourceTemporaldata_source_temporaltypeTemporal coverage and record layout for a data source.
declared_system_kinddeclared_system_kindfunctionThe model’s explicit system_kind field, or None when absent.
DecompositiondecompositiontypeThe horizontal decomposition a tile cuts (RFC U3 §1): the decomposed index sets and the face sets that stagger off them, (face set, cell set).
DEFAULT_ABSTOLdefault_abstolconstantThe canonical default absolute tolerance — Julia’s.
DEFAULT_RELTOLdefault_reltolconstantThe canonical default relative tolerance.
DependencyEdgedependency_edgetypeEdge representing dependencies between variables in an expression graph
deprecated_records_per_sample_sitesdeprecated_records_per_sample_sitesfunctionThe JSON pointers at which the deprecated records_per_sample is written in file (esm-spec §8.5.1), sorted by plain byte order:…
derive_odesderive_odesfunctionGenerate ODE model from a reaction system
derive_output_griddingderive_output_griddingfunctionInvert the flat state-element names into one VarGridding per output base-variable (RFC §7), the flat index of a name being its position in slot_names — the shape…
derive_output_metaderive_output_metafunctionDistill a run document into OutputMeta — the Rust mirror of Julia’s derive_output_meta.
derive_output_planderive_output_planfunctionDerive the whole output plan for a run.
desugar_pushdowndesugar_pushdownfunctionRecognise the projection-pushdown pattern in esm’s named model and, when it matches, return a NEW document (Cow::Owned) with the four constructs desugared in (a…
DimensiondimensiontypeBase physical dimensions — the eight canonical axes shared across the bindings (m kg s mol K A cd rad).
discrete_parametersdiscrete_parametersfunctionParameters carrying any OTHER update — piecewise-constant between refreshes.
DiscreteEventdiscrete_eventtypeDiscrete event that can modify the system
DiscreteEventTriggerdiscrete_event_triggertypeTrigger condition for discrete events
distinctdistinctfunctionSet semantics over rows: sort by the §5.5.1 total order, then drop
DistributiondistributiontypeA parameter’s value drawn from a probability distribution rather than fixed (esm-spec §6.3, schema Distribution).
DocumentFormatdocument_formattypeWhich source format a document is written in.
DomaindomaintypeSpatial/temporal domain specification
EdgeKindedge_kindtypeThe three kinds of reference edge (RFC §6.1 “Propagation”).
EditErroredit_errorerrorErrors that can occur during editing operations
EnsembleProblemensemble_problemtypeA EsmProblem plus a per-trajectory rewrite, and the family it stands for (§2.5.8) — the canonical form for parameter sweeps, Monte Carlo over declared distributions, and…
EnumLoweringErrorenum_lowering_errorerrorStable diagnostic codes raised by the enum-lowering pass.
ephemeral_injected_fileephemeral_injected_filefunctionesm-spec §9.7.10 form C: build a throwaway EsmFile in which component model_name has the test’s imports (raw §9.7.2 entries) appended to its own…
EquationequationtypeDifferential equation
error_code_nameserror_code_namesfunctionEvery diagnostic code string in ERROR_CODES, sorted.
ERROR_CODESerror_codesconstantThe codes registry in ENUMERABLE form: (constant name, code string) for every diagnostic code this binding emits, in declaration order (grouped by the pass that emits it, as…
esm_problemesm_problemfunctionBuild a EsmProblem (§2.5.2).
EsmFileesm_filetypeTop-level ESM file structure
EsmProblemesm_problemtypeA simulation problem: a document, an interval, and the bindings that fix the document rather than the run.
evaluateevaluatefunctionEvaluate a scalar AST expression against a map of float variable bindings.
evaluate_cellwiseevaluate_cellwisefunctionEvaluate an array-valued expression (elementwise ops over array-producing faq/makearray nodes — e.g. a grid-geometry template expanded by a §9.7 import, or a §6.6.5 analytic…
ExactScaleexact_scaletypeThe EXACT scale of a unit relative to SI (esm-spec §4.8.1 “Scales are EXACT”).
expand_coupling_importsexpand_coupling_importsfunctionExpand every coupling_import entry in file.coupling into concrete edges, splicing them in the position of the import entry (esm-spec §10.10.3).
ExprexprtypeMathematical expression: a number literal, variable reference, or operator node.
expression_graphexpression_graphfunctionBuild an expression graph from various ESM components
expression_namesexpression_namesfunctionThe variable names an expression or an equation uses, in order of first use: its string leaves under lhs, rhs and args, and a reference’s bindings values.
ExpressionGraphexpression_graphtypeExpression graph representing variable dependencies within expressions
ExpressionGraphOptionsexpression_graph_optionstypeSettings for expression_graph_with_options.
field_reducefield_reducefunctionCollapse a spatial field to the scalar a §6.6.5 reduce assertion compares (esm-spec §6.6.5); semantics identical to the Julia / Python references:
flattenflattenfunctionFlatten a coupled EsmFile into a single unified FlattenedSystem.
flatten_with_optionsflatten_with_optionsfunctionFlatten with explicit CouplingImportOptions controlling how coupling_import refs resolve (esm-spec §10.10.3).
FlattenedSystemflattened_systemtypeSpec-compliant flattened coupled system (§4.7.5).
FlattenErrorflatten_errorerrorErrors raised by flatten and flatten_model during spec-compliant coupled-system flattening.
FlattenMetadataflatten_metadatatypeProvenance metadata for a flattening pipeline run.
FloatKeyErrorfloat_key_errorerrorRaised when a relational key contains a floating-point (or otherwise non-integer / out-of-domain) component, violating CONFORMANCE_SPEC.md §5.5.1 rule 1 (“floats are forbidden…
forcing_from_sampleforcing_from_samplefunctionThe buffer of slot built from one provider sample: the check and the conversion crate::esm_problem applies to a sample from a provider in ProblemOptions::providers, so a…
ForcingSetforcing_settypeThe forcing a program evaluation reads (API_SPEC §5.8): one immutable buffer per RhsProgram::forcing_slots entry, stamped with a process-unique epoch.
ForcingSlotforcing_slottypeOne buffer of a ForcingSet: the variable it serves, its shape, and its kind.
format_canonical_floatformat_canonical_floatfunctionFormat a finite f64 per RFC §5.4.6.
free_parametersfree_parametersfunctionExtract all free parameters from an expression
free_variablesfree_variablesfunctionExtract all free variables from an expression
FunctionalUpdatefunctional_updatetypeA registered handler computing a parameter’s new value when its update fires (esm-spec §5.5).
get_component_typeget_component_typefunctionGet the type of a component
get_supported_migration_targetssupported_migration_targetsfunctionDeprecated alias of supported_migration_targets.
GraphgraphtypeThe graph kinds the esm-libraries-spec §4.8.3 text exporters render.
GridPlangrid_plantypeOne grid: a set of variables sharing a spatial-dim signature, with the coordinates and dimension lengths that describe it (RFC §9).
group_aggregategroup_aggregatefunctionGroup-by + semiring aggregate (rule 5).
group_gridding_by_gridgroup_gridding_by_gridfunctionPartition output variables into GRIDS by their spatial-dim signature (RFC §9): variables over the same set of axes form one grid, so an atmosphere over [lev, lat, lon] and an…
initinitfunctionBuild a stepping integrator for prob (§2.5.6).
InlineTestOptionsinline_test_optionstypePer-document overrides for run_inline_tests_paths, returned by its options_for callback.
IntegratorintegratortypeA stepping integrator (§2.5.6) — the same lifecycle solve performs internally, exposed for callers that need to interleave their own work with the integration: the coupling…
is_coupling_library_docis_coupling_library_docfunctionTrue when raw has the coupling-library-file FORM (top-level coupling_roles, esm-spec §10.9).
is_ode_stateis_ode_statefunctionMembership test for ode_states.
is_template_library_docis_template_library_docfunctionTrue when raw has the template-library-file FORM (top-level expression_templates, esm-spec §9.7.1).
KernelkerneltypeA compiled kernel (API_SPEC §5.8).
KernelBlockkernel_blocktypeOne output’s block of a kernel’s out (0-based offset).
KernelSetkernel_settypeThe kernels of one compile_kernels call, sharing one u / z layout, one parameter vector and one forcing signature.
KernelWorkspacekernel_workspacetypeA kernel’s buffers, one per concurrent caller.
LIBRARY_VERSIONlibrary_versionconstantThis crate’s OWN version — NOT the .esm format version, which is SCHEMA_VERSION.
load_documentload_documentfunctionLoad and parse an ESM document that is ALREADY parsed as a serde_json::Value — the same document a .esm file holds, just already decoded.
load_pathload_pathfunctionLoad an ESM file from a filesystem path.
load_stringload_stringfunctionLoad and parse an ESM file from JSON string
LoaderFieldloader_fieldtypeOne provider-served loaded field the flattened system consumes (esm-spec §8.5; esm-libraries-spec §4.7.5 step 4 loader_fields).
LoadOptionsload_optionstypeOptions controlling how load_string_with_options / load_document_with_options / load_path_with_options parse an ESM file (esm-spec §9.7).
lower_enumslower_enumsfunctionLower every enum-op node in file to a {op: "const", value: <int>} node using the document’s top-level enums block, returning a NEW document.
lower_enums_mutlower_enums_mutfunctionlower_enums, applied in place.
lower_reactions_to_equationslower_reactions_to_equationsfunctionLower a reaction network to an ODE equation list.
materialize_value_inventionmaterialize_value_inventionfunctionRun the build-time value-invention engine over a raw model document.
MetadatametadatatypeMetadata section
migratemigratefunctionMigrate an ESM file from the version it declares to target_version.
MigrationErrormigration_errorerrorMigration error that occurs when migration fails.
ModelmodeltypeODE-based model component
ModelVariablemodel_variabletypeVariable within a model
observed_definitionsobserved_definitionsfunctionEach observed unknown’s defining RHS, keyed by name.
observed_fieldobserved_fieldfunctionThe build-time field named name, from prob’s construction.
observed_unknownsobserved_unknownsfunctionUnknowns defined by a bare-variable LHS (y ~ f(…)) — eliminable, materializable.
ode_statesode_statesfunctionUnknowns appearing under D(·, t) on some equation LHS.
OperatoroperatortypeRuntime operator reference
OutputErroroutput_errorerrorFailure deriving an OutputPlan — the output-side mirror of the loader seam’s errors.
OutputMetaoutput_metatypeThe document slice a streaming writer needs so it can name axes and emit CF coordinates (RFC §7–§8) without importing the document model.
OutputPlanoutput_plantypeThe full derived output plan: every grid the run produces.
ParameterSweepparameter_sweeptypeA parameter-sweep specification on a ModelAnalysis (schema ParameterSweep).
ParameterUpdateparameter_updatetypeOne update rule: WHEN a parameter refreshes, and WHAT from (esm-spec §5.4).
ParamSlotparam_slottypeOne positional parameter of a program: p[k] is RhsProgram::parameters``[k].
parse_documentparse_documentfunctionRead an ESM document written in the given format.
parse_markdownparse_markdownfunctionRead a Markdown ESM document (Source.Md.parseMd).
parse_mathparse_mathfunctionRead one expression, or one equation, written as math under a set of declared names: LaTeX for DocumentFormat::Markdown (Math.parseLatex), Typst math for…
parse_typstparse_typstfunctionRead a Typst ESM document (Source.Typ.parseTyp).
parse_unitparse_unitfunctionParse a unit string into a Unit struct
PartitionpartitiontypeThe partition of one model: the class summary, the materialization-point set, and the hot-tree / per-event-handler emptiness (§5.7.5 three execution outputs).
plan_dimension_coordinatesplan_dimension_coordinatesfunctionResolve the coordinates registry (§8.3) into the CF dimension coordinates for a set of VarGriddings — the Rust mirror of Julia’s plan_dimension_coordinates.
PlotplottypeA plot specification of a ModelAnalysis (schema Plot).
PlotAxisplot_axistypeAxis specification of an analysis Plot (schema PlotAxis).
PlotSeriesplot_seriestypeA single named series of a multi-series line/scatter Plot (schema PlotSeries).
PlotValueplot_valuetypeA scalar value derived from a trajectory, used for heatmap / color channels (schema PlotValue).
precision_sourceprecision_sourcefunctionReturn the source of a variable’s working precision (esm-spec §11.3.3).
print_documentprint_documentfunctionPrint an ESM document in the given format.
print_markdownprint_markdownfunctionPrint an ESM document as Markdown (Source.Md.printMd).
print_mathprint_mathfunctionPrint one expression, or one equation, as math under a set of declared names: LaTeX for DocumentFormat::Markdown (Math.printLatex), Typst math for DocumentFormat::Typst…
print_typstprint_typstfunctionPrint an ESM document as Typst (Source.Typ.printTyp).
ReactionreactiontypeChemical reaction
ReactionSystemreaction_systemtypeReaction network component
ReferenceEdgereference_edgetypeA directed source → target edge: source references / depends on target.
ReferenceErrorreference_resolution_errorerrorDeprecated alias of ReferenceResolutionError.
ReferenceGraphreference_graphtypeThe resolved reference DAG for one model — the partition pass’s input.
ReferenceResolutionErrorreference_resolution_errorerrorA reference could not be resolved, or the reference graph has a cycle.
ReferenceVertexreference_vertextypeA vertex in the reference graph, addressed by a kind-namespaced key.
reject_solver_external_pre_v13reject_solver_external_pre_v13functionReject solver.external in a file declaring esm < 1.3.0.
reject_solver_pre_v11reject_solver_pre_v11functionReject a top-level solver block in a file declaring esm < 1.1.0.
reject_solver_time_span_pre_v13reject_solver_time_span_pre_v13functionReject solver.time_span in a file declaring esm < 1.3.0.
reject_template_imports_pre_v08reject_template_imports_pre_v08functionexpression_template_imports, top-level expression_templates (template-library files), and metaparameters arrive at esm: 0.8.0; files declaring an earlier version that…
remakeremakefunctionA NEW EsmProblem with changes applied and everything else shared (§2.5.5).
remove_couplingremove_couplingfunctionRemove a coupling entry from an ESM file by index
remove_equationremove_equationfunctionRemove an equation from a model by index
remove_reactionremove_reactionfunctionRemove a reaction from a reaction system by index
remove_speciesremove_speciesfunctionRemove a species from a reaction system
remove_variableremove_variablefunctionRemove a variable from a model
resolve_referencesresolve_referencesfunctionResolve reference edges for every model in document.
resolve_subsystem_refsresolve_subsystem_refsfunctionResolve every subsystem `{ “ref”: …
resolve_template_machineryresolve_template_machineryfunctionResolve every esm-spec §9.7 construct of the ROOT document raw_data (relative import refs resolve against base_path): imports recursively with per-edge instantiation,…
resolve_time_spanresolve_time_spanfunctionThe run interval, most specific first (esm-spec §2.2.7, by the §2.2.2 order):
resolve_tolerancesresolve_tolerancesfunctionResolve integration tolerances most-specific first (esm-spec §2.2.2):
ReturnCodereturn_codetypeWhy a solve stopped — the SciML ReturnCode vocabulary (esm-libraries-spec.md §2.5.3).
rhs_programrhs_programfunctionThe right-hand side prob compiled, as a program RhsProgram::select, RhsProgram::halo, RhsProgram::tile and RhsProgram::lanes accept (API_SPEC §5.8).
RhsSelectionrhs_selectiontypeWhich terms and which variables an operator keeps (API_SPEC §5.8, select).
run_inline_testsrun_inline_testsfunctionRun every inline test (esm-spec §6.6, including the §6.6.5 PDE assertions) of the selected model(s) of file through the official simulation pathway…
sampled_parameterssampled_parametersfunctionParameters with a distribution and no update — drawn once at setup.
SCHEMA_VERSIONschema_versionconstantESM schema version supported by this implementation.
SchemaErrorschema_errorerrorA schema validation error
simplifysimplifyfunctionSimplify an expression (basic symbolic simplification).
SimulateErrorsimulate_errorerrorErrors raised building an crate::problem::EsmProblem or running crate::problem::solve.
SolutionsolutiontypeA simulation result.
solvesolvefunctionRun prob to completion (§2.5.3).
SolversolvertypeDocument-scoped, OPTIONAL solver hints (esm-spec §2.2).
solver_external_locationsolver_external_locationfunctionWhere the document’s solver.external points (esm-spec §2.2.6), or Ok(None) when the document names no run configuration.
SolverTimeSpansolver_time_spantypesolver.time_span (esm-spec §2.2.7): the {start, end} shape of tests[].time_span (TimeSpan), except that each bound may also be an RFC 3339 UTC timestamp, so it is a…
SpeciesspeciestypeChemical species in a reaction system.
StateBlockstate_blocktypeOne state variable’s block of u (API_SPEC §5.8): shape column-major from flat_offset, first index fastest.
stepstepfunctionAdvance integrator by one grid point (§2.5.6’s step!).
stoichiometric_matrixstoichiometric_matrixfunctionGenerate stoichiometric matrix from a reaction system
strippedstrippedfunctionWhat ProblemOptions::strip removed from prob, flattened and namespaced (API_SPEC §5.8, “The stripped object”).
StrippedConstructsstripped_constructstypeWhat strip removed (API_SPEC §5.8, “The stripped object”).
StructuralErrorstructural_errorerrorA structural validation error
substitutesubstitutefunctionSubstitute variables in an expression, returning a new expression.
substitute_in_modelsubstitute_in_modelfunctionSubstitute variables in all expressions within a model (equations plus discrete/continuous events; other model fields are cloned unchanged).
substitute_in_model_with_contextsubstitute_in_model_with_contextfunctionsubstitute_in_model with scoped reference resolution.
substitute_in_reaction_systemsubstitute_in_reaction_systemfunctionSubstitute variables in all reaction-rate expressions within a reaction system.
substitute_in_reaction_system_with_contextsubstitute_in_reaction_system_with_contextfunctionsubstitute_in_reaction_system with scoped reference resolution.
substitute_with_contextsubstitute_with_contextfunctionSubstitute variables in an expression with scoped reference resolution (esm-spec §2.3.3).
SubsystemRefsubsystem_reftypeAn unresolved {"ref": …} mount edge (schema SubsystemRef).
supported_migration_targetssupported_migration_targetsfunctionThe schema versions from_version can be migrated to.
SweepDimensionsweep_dimensiontypeOne axis of a ParameterSweep (schema SweepDimension): exactly one of values / range is present.
SweepRangesweep_rangetypeGenerated range of values for one SweepDimension (schema SweepRange).
system_kindsystem_kindfunctionThe DERIVED system kind (esm-spec §6.3.1), which a binding uses when the system_kind field is absent and checks against when it is present.
SystemKindsystem_kindtypeThe derived system kind (esm-spec §6.3.1).
TermOriginterm_origintypeWho authored one Contribution to a flattened equation (esm-libraries-spec §4.7.5, “Per-term provenance”).
time_origintime_originfunctionThe time origin in seconds from the POSIX epoch (esm-spec §2.2.7): domain.temporal.reference_time, else domain.temporal.start, else the epoch itself, as W0 + f0 – whole…
TimePointtime_pointtypeOne bound of a SolverTimeSpan, kept in its authored form.
TimeSpantime_spantypeSimulation time interval used by inline model tests.
timestamp_to_secondstimestamp_to_secondsfunctiontimestamp as seconds from source’s time origin (esm-spec §2.2.7).
to_dotto_dotfunctionRender graph as Graphviz DOT (esm-libraries-spec §4.8.3).
to_jsonto_jsonfunctionSerialize an ESM file to JSON string
to_json_compactto_json_compactfunctionSerialize an ESM file to compact JSON string (no pretty printing)
to_json_graphto_json_graphfunctionRender graph as a JSON adjacency-list document (esm-libraries-spec §4.8.3).
to_mermaidto_mermaidfunctionRender graph as Mermaid (esm-libraries-spec §4.8.3).
TolerancetolerancetypeNumerical comparison tolerance used by inline model tests.
UnitunittypeRepresents a physical unit with dimensions
UNIT_FINDING_ANALYSISunit_finding_analysisconstantSee UNIT_FINDING_DIMENSIONAL_MISMATCH.
UNIT_FINDING_DIMENSIONAL_MISMATCHunit_finding_dimensional_mismatchconstantThe cross-binding code values a dimensional finding can carry, as surfaced on crate::validate::UnitWarning::code.
UNIT_FINDING_DIMENSIONLESS_LITERALunit_finding_dimensionless_literalconstantA check site the CURRENT neutral-literal rule passes or skips fails once a nonzero bare numeric literal is read as dimensionless at scale 1 (esm-spec §4.8.6).
UNIT_FINDING_UNPARSEABLEunit_finding_unparseableconstantSee UNIT_FINDING_DIMENSIONAL_MISMATCH.
UnitFindingunit_findingtypeA single dimensional finding produced while propagating an expression.
UnitWarningunit_warningtypeA dimensional-analysis finding surfaced by validation.
validatevalidatefunctionPerform structural validation on an ESM file
validate_completevalidate_textfunctionDeprecated alias of validate_text.
validate_equation_dimensionsvalidate_equation_dimensionsfunctionValidate that an equation’s LHS and RHS have matching dimensions.
validate_textvalidate_textfunctionValidate an ESM file completely (schema + structural validation)
ValidationResultvalidation_resulttypeResult of structural validation
ValidationWarningvalidation_warningtypeAn advisory validation finding.
ValueInventionErrorvalue_invention_errorerrorA value-invention build-time materialisation error (the Rust analog of Julia’s TreeWalkError value-invention codes).
ValueInventionResultvalue_invention_resulttypeResult of materialize_value_invention.
VarGriddingvar_griddingtypeThe gridded layout of one output base-variable, derived from the flat state-element names (RFC §7).
VariableBoundvariable_boundtypeOne bound of a model variable (esm-spec §6.3.2): the lb or ub field.
VariableKindvariable_kindtypeType/kind of variable, as the graph renders it.
VariableNodevariable_nodetypeNode representing a variable in an expression graph
VarPlanvar_plantypeOne output variable: what a writer declares, plus the inversion that fills it.
VertexKindvertex_kindtypeThe three kinds of vertex in the reference graph.
write_pathwrite_pathfunctionWrite an ESM file to path as pretty-printed JSON.