macro_rules! combine_executable_rules {
    ( $name:ty, $err:ty, [$( $rule:ty ),* $(,)?] $(,)? ) => { ... };
}
Expand description

Combines multiple rules into a single rule. Args:

  1. Name of the resulting struct
  2. Name of the error type returned by the rule. Must accept generic lifetime, executable document, and schema definition. e.g. pass Error for Error<'a, E, S>.
  3. Rules, a comma-separated list of types accepting generic lifetime, executable document, and schema definition. Must implement Rule<’a, E, S>. Must be wrapped in square brackets. e.g. [FirstRule, SecondRule]. The Error type of each rule must be convertable to the error type of the new rule via Into::into.