Skip to main content

CsrCapture

Struct CsrCapture 

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

Source

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.

Source

pub fn state_count(&self) -> usize

Number of representative vertices, including the unexpanded frontier.

Source

pub const fn limits(&self) -> Limits

Actual entry limits used for this shape check; these are not byte bounds.

Source

pub fn offsets(&self) -> &'a [usize]

Checked adjacency offsets, including the terminal offset.

Source

pub fn targets(&self) -> &'a [u32]

Checked dense edge destinations, including implicit stutters.

Source

pub fn roots(&self) -> &'a [usize]

Initial representatives in discovery order.

Source

pub const fn closed_rows(&self) -> usize

Fully expanded source count at this committed boundary.

Source

pub fn outgoing_range(&self, source: usize) -> Option<Range<usize>>

Physical adjacency range for a source, including its implicit stutter.

Source

pub fn target(&self, edge: usize) -> Option<usize>

Destination of a physical adjacency entry.

Source

pub fn ordinal(&self, edge: usize) -> Option<Option<u64>>

Generation ordinal of a physical entry; stutters have Some(None).

Source

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.

Source

pub fn representative_row(&self, vertex: usize) -> Option<usize>

Opaque first-discovery row for a representative vertex.

Source

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.

Source

pub fn original_count(&self, source: usize) -> Option<usize>

Generated originals in one source row, excluding the implicit stutter.

Trait Implementations§

Source§

impl<'a> Clone for CsrCapture<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for CsrCapture<'a>

Source§

impl<'a> Debug for CsrCapture<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Forget for CsrCapture<'a>

§

impl<'a> Freeze for CsrCapture<'a>

§

impl<'a> Move for CsrCapture<'a>

§

impl<'a> RefUnwindSafe for CsrCapture<'a>

§

impl<'a> Send for CsrCapture<'a>

§

impl<'a> Sync for CsrCapture<'a>

§

impl<'a> Unpin for CsrCapture<'a>

§

impl<'a> UnsafeUnpin for CsrCapture<'a>

§

impl<'a> UnwindSafe for CsrCapture<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.