use accio::*;
fn main() {
for s in vec!["s_one", "2", "none"] {
if let Some(v) = TestEnum::parse(s) {
v.show();
}
}
}
#[accio_body(testEnum)]
enum TestEnum {
}
impl TestEnum {
fn parse(s: &str) -> Option<Self> {
accio!(testParse);
None
}
#[accio_body(testMatch)]
fn show(&self) {
match self {
}
}
}