Expand description
Graph classifier — structural classification of Pattern<V> values.
Ported from Pattern.Graph.GraphClassifier in the Haskell reference implementation.
Structs§
- Graph
Classifier - Injectable classification strategy wrapping a boxed closure.
Enums§
- Graph
Class - The five structural categories a pattern can belong to.
Traits§
- Graph
Value - Value types that can be used with
GraphClassifierandPatternGraph.
Functions§
- canonical_
classifier - Returns the standard shape-based classifier.
- classify_
by_ shape - Classifies a pattern by its structural shape.
- from_
test_ node - Wraps a node predicate into a two-category classifier (
GNodevsGOther(())).