Implement this to provide an extractor that pulls the Rule out of the String.
Implement this to provide an extractor that pulls the Rule out of the String.
The String that should be parsed into a Rule.
None if the string cannot be parsed; Some(rule) if the string can be parsed.
A convenience method for times when using the extractor is too heavy.
A convenience method for times when using the extractor is too heavy.
The String that should be parsed into a Rule.
The Rule that had been serialized; this method will throw a CannotDeserializeException if it is unable to deserialize the string into a rule based on the current parser.
Implement this trait when defining a new RuleParser. The parser should take the serialized string version of the rule and deserialize it into the rule itself.