A convenience method to be used to see if a rule matches a context.
A convenience method to be used to see if a rule matches a context.
The context in which the rule attempts to match or not match.
Boolean: true if the rule matches the context; false if not.
Implement this to determine whether a context matches a rule.
Implement this to determine whether a context matches a rule. Under the hood, this will likely match on various context types, since matching can differ based on context, and a given rule might successfully match in more than one context. The Option return type is leveraged by the 'extractor' pattern and as such implementers should return None when rules do not match the context.
The context on which we are attempting to match the rule; can be any type of context.
None for no match; Some(context) if the rule matches the context.
The list of 'InnerType' values that apply to this rule.
Pass any number of rules into this Or class to boolean-or their results together. This will short-circuit processing once the first rule passes.