pub enum GWindowKind {
Unconstrained,
DefaultOnly,
General,
}Expand description
Walk-entry classification of the G window, computed once per walk.
The head walks test the G window per row; this enum picks the cheapest test the request’s window shape admits, replacing the full-quad decode the constrained path used to pay for the same verdict.
Variants§
Unconstrained
No G constraint: no per-row G work at all.
DefaultOnly
The window is exactly {DefaultGraph} — a bound default graph with
no filter, or an allow-list of exactly the default graph. The
per-row test is whether the G region is empty:
EncodedTerm::DefaultGraph encodes to zero bytes and no other
variant does (every real term writes a type byte), so an empty
region is exactly g == DefaultGraph, the verdict
domain_graph_allows returns for both shapes.
The test reads byte shape, not term structure: a corrupt non-empty
G region is skipped silently instead of reported as Corrupt.
That matches the stream path’s byte-level G filtering
(GByteFilter), which never validates the G segment either; the
full-quad decode’s validation of G was an incidental side effect,
not a designed contract.
General
Any other window: the G term is decoded with one targeted
read_term and tested by domain_graph_allows unchanged.
Trait Implementations§
Source§impl Clone for GWindowKind
impl Clone for GWindowKind
Source§fn clone(&self) -> GWindowKind
fn clone(&self) -> GWindowKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more