Attribute Macro cex_derive::cex [−][src]
#[cex]
tag an fn
with #[cex]
to:
-
enable “type pattern matching” in
match
expressions that are tagged with#[ty_pat]
/#[ty_pat(gen_variants)]/
#[ty_pat(gen A,B,..)]`. -
modify try(
?
) expressions to which appendmap_error()
automatically. -
generate code for
Result!()
/ret!()
/throw!()
macro invocations.