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.
The list of 'InnerType' values that apply to this rule.
The rule matches if the value is in the list of values.
The rule matches if the value is in the list of values.
The value to match against.
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.
A general interface that can be used to implement an In rule for any datatype. In practice, this is used mostly for parsing, to differentiate, say, In[String] from In[Long].