Type Definition syntax_ext::deriving::generic::EnumNonMatchCollapsedFunc
[−]
[src]
type EnumNonMatchCollapsedFunc<'a> = Box<FnMut(&mut ExtCtxt, Span, (&[Ident], &[Ident]), &[P<Expr>]) -> P<Expr> + 'a>;
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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.