whichever 0.7.1

Implements a trait for an enum by forwarding to whichever variant it holds
Documentation
1
2
3
4
5
6
7
//! `#[dispatch]` goes on an enum, a struct, or an impl block of one.
#[whichever::dispatch]
fn area() -> u32 {
    1
}

fn main() {}