/// Returns a RewriteSpec containing all the rewrite rules and a list of terms that need to be rewritten.
/// Extracts data from parsed constructor section, derives the arity of symbols. Types are ignored.
debug_assert!(pair.as_rule() == Rule::single_rewrite_rule || pair.as_rule() == Rule::rewrite_rule);