Skip to main content

Crate zincite_query

Crate zincite_query 

Source
Expand description

Source inspection and explicit data edits over the retained MiniZinc CST.

Input owns original bytes and the CST. Query parses a fixed pipeline for navigating nodes, inspecting literals or editing data collections/assignments. Results stay native until source or JSON rendering. Source rendering retains original bytes, including opaque comment bytes. Literal inspection and comparisons are bounded and never evaluate computed input expressions or includes. Program constructs reports and atomic model-backed data batches through Zirql.

Modules§

cli

Structs§

CaptureMatches
Native match rows retain their declared fields even when no candidate matches.
Input
Read-only original input and its byte-preserving parser view.
InputError
JsonResult
A validated JSON emitter retaining the native result until rendering.
Limits
Finite bounds for query evaluation and expansion. work counts stage visits and scans, including model tokens and CST nodes admitted once before semantic fact allocation. It is not a wall-clock bound. collection bounds produced selections, results and expansion frontiers; loaded model source tokens/nodes do not consume this result allowance. nesting lowers the ceiling of 64 query parentheses/not operators and recursive literal levels.
LiteralEntry
LiteralField
LiteralLabel
A field label is distinct from an enum member or string value.
LiteralRow
LiteralSelection
LiteralValue
One literal with original source spelling and byte coordinates.
NodeSelection
ParameterDeclaration
Immutable request metadata retained beside a host’s lowered program. Text frontends introduce the name into scope at its written declaration, checking host reserved names and later binding/generator/projection collisions.
Program
ProgramEmission
ProgramLimits
Program bounds retain the single-pipeline stream ceiling and add a request allowance for produced/copied native entries. Model tokens consume work.
ProgramResult
Successful evaluation returns all emission requests together. No callback runs during evaluation. Rendering spends the same request budget and callers should commit the returned bytes only after rendering succeeds.
Query
One fixed-stage query. Empty text selects and emits the original document.
QueryError
ReductionResult
An inspectable, reparsed candidate. Only complete candidates may be written.
SelectedItem
One retained item. Ranges use original input coordinates; the borrowed CST node itself uses the parser’s coordinates described by Input::syntax.
SelectedNode
One original CST node, with its original-file byte coordinates.
Selection
SemanticInstantiation
SemanticResult
Native inspection with immutable source owners and only demanded fact families. The input and model must outlive this result. Locations include each file’s BOM; declaration owning CST ranges remain in the fact API’s BOM-stripped coordinates.
SemanticType
SourceCopies
Opaque source fragments tied to their original input and model-fact owner. Values are created by clone/repeat stages and consumed by append statements.
UnresolvedDependency

Enums§

ArrayIndexing
Written indexing form; a starting key does not establish bare-tail identities.
ConstructedValue
Owned constructed data. Arrays have positive one-based positions. Tuples and records retain field order; sets retain each first inserted element. Keyed arrays retain nonzero typed axes and sparse row-major entries; supplied axes need not be contiguous or cover a full Cartesian product. Public construction is checked by the budgeted entry points before use. Derived Rust equality compares stored representations. Language set and dictionary equality compares membership and associations respectively. There is deliberately no deep Clone; use copy_constructed_value.
ErrorLocation
Coordinate space of a query failure.
ItemKind
Accepted kind predicate values, independent of expression node kinds.
LiteralKind
Recursive inspection data, without evaluating computed expressions.
ParameterInputs
Borrowed caller values. CLI hosts collect raw arguments without decoding or substituting them into source; library callers supply exact scalar values.
ParameterType
Required caller inputs support exactly these three scalar types.
ProgramNative
A native MiniZinc query leaf. Common composition uses Zirql expression steps.
QueryResult
ReportValue
Native report leaves retain source selections and semantic identities. Constructed values have no input-source ranges; record labels preserve order.
SemanticEntity
Identities belong to SemanticResult::bindings, independently of CST identity.
SemanticStream
SemanticSubject
A type or instantiation belongs to this exact declaration, occurrence or node.

Type Aliases§

ProgramFunction
A typed pure function with located pattern parameters and unresolved host types.
ProgramValue
A typed value whose native leaves are shared expression wrappers around Query. The wrapper permits flat native pipelines to be released iteratively.