tryx-derive 0.1.0

Derive macro for tryx outcome types
Documentation
1
2
3
4
5
6
7
8
9
10
11
use tryx_derive::Outcome;

#[derive(Outcome)]
enum MultipleFields {
    #[outcome(success)]
    Yes(u8),
    #[outcome(short_circuit)]
    No(&'static str, &'static str),
}

fn main() {}