Skip to main content

FrontierDecline

Enum FrontierDecline 

Source
pub enum FrontierDecline {
Show 14 variants MultiplePatterns, CarryingRow, Mode, NestedSpine, AllReduceGroup, PinnedBinding, Conjunct, NfaShape, GuardedGroup, FullEnumeration, OrderedCap, PathCount, PathConsumer, Cost,
}
Expand description

Every plan-time gate’s decline, typed so a test or plan dump names the gate that kept the DFS. The decline is always safe: the per-row DFS answers identically. Every gate decides before a single walk — the rung’s run-time declines are their own type (FrontierRunDecline: the re-arrival budget and the table ceiling). The PROFILE record carries either one as a FrontierDeclineReason.

Variants§

§

MultiplePatterns

The clause does not carry exactly one pattern: the frontier is a single-pattern, single-quantifier family (a UNION’s arms are separate clauses, each decided on its own — the non-quantified arm needs no kernel at all).

§

CarryingRow

The entering row binds anything but the pattern’s seed-side variable: a prebound group-list pin (the legacy exact-trail rule), a prebound target or path variable, or a mid-statement clause’s outer bindings — per-row semantics the single-seed frontier does not reproduce.

§

Mode

The mode is outside the family: an explicit TRAIL/ACYCLIC/SIMPLE path mode outside the capped consumer (the capped emission’s per-witness cycle checks serve exactly that consumer — frontier_emit; full enumeration and distinct-endpoint answers stay per-path under these modes), any trail-enforcing mode under the REPEATABLE pool (rel reuse is that pool’s semantics), or an unbounded quantifier under the WALK pool — REPEATABLE ELEMENTS keeps its authored UnsafeRepeatableElements rejection (ADR-0478 §5), and the bounded-WALK answer shape is bounded by definition.

§

NestedSpine

A nested quantifier inside the quantified spine — a var-length rel or a quantified group among its inner elements. The spine then unrolls (variable round length) or accumulates list-of-list groups, and the emission’s fixed-round reconstruction (frontier_emit) cannot bind those rows; the DFS keeps the shape, answers identical. Parser-unreachable (the front end’s NestedQuantification rule rejects both spellings): the gate is the defensive bound for hand-built IR.

§

AllReduceGroup

A MATCH-WHERE allReduce the inliner runs over one of this quantification’s groups — ADR-0478 §2’s hard decline: the inliner’s per-branch prefix semantics cannot survive pair dedup (one (node, state) pair stands for many prefixes with different accumulator values), so that shape keeps the DFS with its inliner.

§

PinnedBinding

A repeated element variable pins a binding the pair-dedup cannot reconcile: the target (or an interior node) repeating another node’s variable, a rel variable repeated across hops or colliding with a node name — the walker’s pre-bound reconciliation semantics.

§

Conjunct

A MATCH-WHERE conjunct outside the closed predicate vocabulary on the boundary nodes: it does not decode (a function over the row, OR, a nondeterministic bound), it names a group list, the path variable, a rel, an interior or an outer variable, or it is a second predicate on one boundary variable. The one exception is <> between the two boundary variables, admitted for the distinct-endpoint consumer alone (BoundaryPair).

§

NfaShape

The NFA compiler declined the shape — its declines are this arm’s declines: a second top-level quantified element, a subpath variable, a pattern WHERE or a selector, rel-predicate inner hops, admission-bearing interior nodes (the auto rung; the forced rung compiles them as guards), the 64-state ceiling, a nested unbounded quantifier, broken alternation, an uninterned type name, overflowing bounds.

§

GuardedGroup

A quantified group whose WHERE references its own pattern variables (the fraud f03 shape) — the forced rung compiles it (the predicate rides the round-closing transition, each referenced variable read at its last binding), but no consumer proof covers serving a predicate-guarded run: the pair-dedup answers these shapes approximately, so every consumer declines and the DFS answers exactly.

§

FullEnumeration

The consumer needs every row, not a pair-shaped answer: no cap and no distinct/aggregate fold — full enumeration (two trails to one node are two answers), a grouped or filtered suffix, a suffix that is not a RETURN/WITH, or a LIMIT 0/overflowing cap the cap rider itself declines.

§

OrderedCap

ORDER BY with LIMIT: ordered truncation needs the full candidate set to sort (ADR-0478 §2 — ordered caps keep the DFS, exactly as they keep full enumeration in ADR-0475).

§

PathCount

The answer counts or folds the path multiset, not the endpoint set: count(p), count(*), a non-DISTINCT count/collect, or a multiplicity-sensitive fold (sum, avg, …) — path counts are exponential by nature; the DFS keeps them on this rung (the one path count the family serves, the WALK pool’s plain count, is the walk-count fold’s — frontier_count, ADR-0523).

§

PathConsumer

A non-capped consumer consumes the path variable or a group list — only the ≤ want reconstructed witnesses of the capped shape carry those bindings, so a distinct/aggregate answer over them would read bindings the frontier never produced.

§

Cost

The cost gate: a bounded recursion whose estimated trails cost the DFS less than the frontier’s pairs and probes (or whose hops the statistics cannot price) — the DFS is cheaper (no reconstruction pass, the existing row plumbing) and keeps the clause.

Implementations§

Source§

impl FrontierDecline

Source

pub const ALL: [FrontierDecline; 14]

Every decline of this vocabulary, in declaration order — the parity pin’s iteration source against the wire table (plan_keys::DECLINE_REASONS).

Source

pub fn as_str(self) -> &'static str

The decline’s stable wire name: the vocabulary the plan args and the renderers spell, single-sourced here against the wire table the parity pin compares.

Trait Implementations§

Source§

impl Clone for FrontierDecline

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 Copy for FrontierDecline

Source§

impl Debug for FrontierDecline

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Eq for FrontierDecline

Source§

impl From<FrontierDecline> for FrontierDeclineReason

Source§

fn from(decline: FrontierDecline) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for FrontierDecline

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for FrontierDecline

Auto Trait Implementations§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. 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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V