Macro branches

Source
macro_rules! branches {
    {
        $(
            ($($filter:expr),*) => $res:expr
        ),*
    } => { ... };
}