macro_rules! num_outputs {
    ($t:ty, ($min:expr, $max:expr)) => { ... };
    ($t:ty, {$min:expr, $max:expr}) => { ... };
    ($t:ty, $n:expr) => { ... };
}