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
impl FrontierDecline
Sourcepub const ALL: [FrontierDecline; 14]
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).
Trait Implementations§
Source§impl Clone for FrontierDecline
impl Clone for FrontierDecline
impl Copy for FrontierDecline
Source§impl Debug for FrontierDecline
impl Debug for FrontierDecline
impl Eq for FrontierDecline
Source§impl From<FrontierDecline> for FrontierDeclineReason
impl From<FrontierDecline> for FrontierDeclineReason
Source§fn from(decline: FrontierDecline) -> Self
fn from(decline: FrontierDecline) -> Self
Source§impl PartialEq for FrontierDecline
impl PartialEq for FrontierDecline
impl StructuralPartialEq for FrontierDecline
Auto Trait Implementations§
impl Forget for FrontierDecline
impl Freeze for FrontierDecline
impl Move for FrontierDecline
impl RefUnwindSafe for FrontierDecline
impl Send for FrontierDecline
impl Sync for FrontierDecline
impl Unpin for FrontierDecline
impl UnsafeUnpin for FrontierDecline
impl UnwindSafe for FrontierDecline
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.