Skip to main content

Crate powerio_core

Crate powerio_core 

Source
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.

Modules§

limits
Decode time record limits, shared by every PowerIO wire.

Macros§

diagnostic_codes
Declare one crate’s diagnostic registry.

Structs§

ArtifactPath
Portable relative path of one output artifact.
Destination
Owned output destination for one file, one directory, or memory artifacts.
Diagnostic
One coded user facing finding.
DiagnosticCode
Stable dotted identity of one diagnostic.
DiagnosticId
DiagnosticInfo
One entry in a crate’s diagnostic registry.
Digest
Validated digest attached to a stored source descriptor.
Error
Failure to produce an operation’s requested output.
FormatId
Open stable identifier used to select a parser or writer.
HistoryEntry
Structured description of an operation that produced the current value.
HistoryId
MemoryArtifact
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.
ScenarioId
Case-sensitive stable identity of one scenario.
ScenarioSet
Named alternatives with no implied time order.
Source
Source::open on a file retains the primary bytes and permits constrained acquisition of referenced files beneath the file’s canonical containing directory; Source::with_acquisition_root widens that root at construction, and never from a parser. Source::from_bytes grants no filesystem access; referenced content reaches an in-memory source only through Source::with_named_buffer.
SourceBuffer
Immutable named bytes retained by a Source.
SourceDescriptor
Durable description of one source buffer.
SourceId
SourceMapEntry
Relation between one typed value target and its source bytes.
SourceSpan
Half open byte range in one module source.
TimePoint
One ordered position in a time series.
TimeSeries
Ordered complete values of one Rust type.
WriteResult
Successful write output plus diagnostics emitted by the writer.

Enums§

CodeStatus
Whether a diagnostic identity is still emitted.
DiagnosticSeverity
Severity of one user facing finding.
DiagnosticStage
Pipeline stage encoded by the first segment of a diagnostic code.
DigestAlgorithm
ErrorCategory
Coarse projection of an operation failure for bindings and exit statuses.
HistoryKind
SourceRelation
WrittenOutput
Complete inventory of output owned by the caller.

Constants§

CORE_DIAGNOSTIC_CODES
Every code declared by this registry.
SCENARIO_PROBABILITY_TOLERANCE
Absolute tolerance for a complete probability sum.

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.SCOPE prefix.
code_is_well_formed
Check [A-Z][A-Z0-9_]*(\.[A-Z0-9_]+){2,}.
render_diagnostic
render_diagnostics