pub enum DecisionPattern {
MatchDiff,
GreedyUnderMatch,
GreedyOverMatch,
BothLitOnly,
}Expand description
Which side used literals vs matches in a divergence region — the coarsest
possible cut of “what kind of decision differed”, independent of whether
the frontier’s matches were probe-visible (that’s RegionClass). Read as
“A did ROW, B did COLUMN”:
MatchDiff— both sides matched here, but chose differently (classic squeeze/parse territory: length, distance, or token-count tradeoff over the SAME candidate pool).GreedyUnderMatch— A used only literals where B (the optimal parse) found and used a match: a genuine miss, not an over-eager one.GreedyOverMatch— A matched where B’s optimal parse preferred literals (over-matching: A’s match costs more than literals under the final tables). Byte-identical in scope toRegionClass::LitOnly(kept as a named pattern for symmetry/table-legibility, not as new information).BothLitOnly— structurally unreachable: two literal-only spans over the same raw bytes are token-identical, so they never form a divergence region in the first place. Kept as an explicit variant (rather than silently folded into another) so a reconciliation bug that DID produce one would show up as a nonzero count instead of disappearing into a misleading bucket.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for DecisionPattern
impl Clone for DecisionPattern
impl Copy for DecisionPattern
Source§impl Debug for DecisionPattern
impl Debug for DecisionPattern
impl Eq for DecisionPattern
Source§impl PartialEq for DecisionPattern
impl PartialEq for DecisionPattern
Source§impl Serialize for DecisionPattern
impl Serialize for DecisionPattern
impl StructuralPartialEq for DecisionPattern
Auto Trait Implementations§
impl Freeze for DecisionPattern
impl RefUnwindSafe for DecisionPattern
impl Send for DecisionPattern
impl Sync for DecisionPattern
impl Unpin for DecisionPattern
impl UnsafeUnpin for DecisionPattern
impl UnwindSafe for DecisionPattern
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
Mutably borrows from an owned value. Read more