pub struct CsrCapture<'a> { /* private fields */ }Expand description
Immutable, structurally checked CSR capture, without completion authority.
Generated duplicates, ordinal gaps, action labels and original row identities remain intact. A successful shape check alone cannot establish exhaustion.
Implementations§
Source§impl<'a> CsrCapture<'a>
impl<'a> CsrCapture<'a>
Sourcepub fn checked(
input: CsrCaptureInput<'a>,
limits: Limits,
control: &EvaluationControl,
) -> Result<Self, Verdict>
pub fn checked( input: CsrCaptureInput<'a>, limits: Limits, control: &EvaluationControl, ) -> Result<Self, Verdict>
Checks structural invariants under the actual armed run control. All closed sources end in exactly one implicit full-state stutter.
§Errors
Malformed metadata, retained-entry limits, or an actual run interruption.
Sourcepub fn state_count(&self) -> usize
pub fn state_count(&self) -> usize
Number of representative vertices, including the unexpanded frontier.
Sourcepub const fn limits(&self) -> Limits
pub const fn limits(&self) -> Limits
Actual entry limits used for this shape check; these are not byte bounds.
Sourcepub fn targets(&self) -> &'a [u32]
pub fn targets(&self) -> &'a [u32]
Checked dense edge destinations, including implicit stutters.
Sourcepub const fn closed_rows(&self) -> usize
pub const fn closed_rows(&self) -> usize
Fully expanded source count at this committed boundary.
Sourcepub fn outgoing_range(&self, source: usize) -> Option<Range<usize>>
pub fn outgoing_range(&self, source: usize) -> Option<Range<usize>>
Physical adjacency range for a source, including its implicit stutter.
Sourcepub fn ordinal(&self, edge: usize) -> Option<Option<u64>>
pub fn ordinal(&self, edge: usize) -> Option<Option<u64>>
Generation ordinal of a physical entry; stutters have Some(None).
Sourcepub fn label(&self, edge: usize) -> Option<Option<&'a str>>
pub fn label(&self, edge: usize) -> Option<Option<&'a str>>
Action label; generated unnamed actions use the empty label.
Stutters have Some(None), and out-of-range entries have None.
Sourcepub fn representative_row(&self, vertex: usize) -> Option<usize>
pub fn representative_row(&self, vertex: usize) -> Option<usize>
Opaque first-discovery row for a representative vertex.
Sourcepub fn original_row(&self, source: usize, position: usize) -> Option<usize>
pub fn original_row(&self, source: usize, position: usize) -> Option<usize>
Generated original row at a source’s physical generated-edge position. Positions exclude the final stutter and do not use generation ordinals.
Sourcepub fn original_count(&self, source: usize) -> Option<usize>
pub fn original_count(&self, source: usize) -> Option<usize>
Generated originals in one source row, excluding the implicit stutter.