macro_rules! rule_filter {
    ($( $method: ident($variant:ident => $rule_type: ident), )+) => { ... };
}