Type Definition rustc_builtin_macros::deriving::generic::EnumNonMatchCollapsedFunc [−][src]
pub type EnumNonMatchCollapsedFunc<'a> = Box<dyn FnMut(&mut ExtCtxt<'_>, Span, (&[Ident], &[Ident]), &[P<Expr>]) -> P<Expr> + 'a>;
Expand description
Deal with non-matching enum variants. The tuple is a list of
identifiers (one for each Self
argument, which could be any of the
variants since they have been collapsed together) and the identifiers
holding the variant index value for each of the Self
arguments. The
last argument is all the non-Self
args of the method being derived.