Return all matching paths along with any named captures.
The CBOR value to match against
A tuple of paths and captures map
Return only the matching paths, discarding any captures.
The CBOR value to match against
Array of paths to matching elements
Check if the pattern matches the given CBOR value.
The CBOR value to test
true if the pattern matches
Recursively collect all capture names from this pattern.
The array to collect names into
Check if the pattern display is "complex" (requires parentheses).
true if the pattern requires grouping
Format the pattern as a string.
Interface for objects that can match against CBOR values.
This interface defines the contract for all pattern types in the system. Implementations handle matching, path collection, and VM bytecode compilation.