Expand description
Dependency neutral compiler infrastructure shared by PowerIO crates.
This crate owns source buffers, diagnostics, operation errors, the generic
PioModule, repeated value containers, and output destinations. It does
not own electrical network, calculation, matrix, or dynamic value types.
Re-exports§
pub use codes::CORE_DIAGNOSTIC_CODES;
Modules§
- codes
- Diagnostic identities emitted by the foundation crate.
- limits
- Decode time record limits, shared by every PowerIO serialization.
Macros§
- diagnostic_
codes - Declare one crate’s diagnostic registry.
Structs§
- Artifact
Path - Portable relative path of one output artifact.
- Component
Id - Stable identity of one component in a PowerIO value.
- Destination
- Owned output destination for one file, one directory, or memory artifacts.
- Diagnostic
- One coded user facing finding.
- Diagnostic
Code - Stable dotted identity of one diagnostic.
- Diagnostic
Id - Diagnostic
Info - One entry in a crate’s diagnostic registry.
- Digest
- Validated digest attached to a stored source descriptor.
- Emit
Result - Successful write output plus diagnostics emitted by the writer.
- Error
- Failure to produce an operation’s requested output.
- Format
Id - Open stable identifier used to select a parser or writer.
- History
Entry - Structured description of an operation that produced the current value.
- History
Id - Memory
Artifact - One owned memory artifact.
- PioModule
- One typed PowerIO compiler unit.
- Producer
- Program identity recorded with a module.
- Scenario
- One named scenario and its optional probability.
- Scenario
Id - Case-sensitive stable identity of one scenario.
- Scenario
Set - Named alternatives with no implied time order.
- Source
Source::openon a file retains the primary bytes and permits constrained acquisition of referenced files beneath the file’s canonical containing directory;Source::with_acquisition_rootwidens that root at construction, and never from a parser.Source::from_memorygrants no filesystem access; referenced content reaches an in-memory source only throughSource::with_named_buffer.- Source
Buffer - Immutable named bytes retained by a
Source. - Source
Descriptor - Durable description of one source buffer.
- Source
Id - Source
MapEntry - Relation between one typed value target and its source bytes.
- Source
Span - Half open byte range in one module source.
- Staged
Edit - An isolated candidate for one atomic module edit.
- Time
Point - One ordered position in a time series.
- Time
Series - Ordered complete values of one Rust type.
Enums§
- Code
Status - Whether a diagnostic identity is still emitted.
- Diagnostic
Severity - Severity of one user facing finding.
- Diagnostic
Stage - Pipeline stage encoded by the first segment of a diagnostic code.
- Digest
Algorithm - Emitted
Output - Complete inventory of output owned by the caller.
- Error
Category - Coarse projection of an operation failure for bindings and exit statuses.
- Fidelity
- How an emitted artifact inventory relates to the module supplied to its writer.
- History
Kind - Output
Layout - Physical shape of one completed emission.
- Source
Relation
Constants§
- MEMORY_
SOURCE_ NAME - The name a source built from content in memory carries when the caller
supplies none. Format detection and diagnostics read it, so content whose
name carries meaning goes through
Source::from_memoryinstead. - SCENARIO_
PROBABILITY_ TOLERANCE - Absolute tolerance for a complete probability sum.
Traits§
- Into
Destination - One output a write operation can produce.
- Into
Source - One input a read operation can acquire.
Functions§
- check_
registry - Check grammar, namespace, uniqueness, summaries, and fatal category data.
- check_
scope_ ownership - Check that two crates do not claim the same
NAMESPACE.SCOPEprefix. - code_
is_ well_ formed - Check
[A-Z][A-Z0-9_]*(\.[A-Z0-9_]+){2,}. - render_
diagnostic - render_
diagnostics