Function syntax_ext::deriving::generic::cs_same_method [] [src]

pub fn cs_same_method<F>(
    f: F,
    enum_nonmatch_f: EnumNonMatchCollapsedFunc,
    cx: &mut ExtCtxt,
    trait_span: Span,
    substructure: &Substructure
) -> P<Expr> where
    F: FnOnce(&mut ExtCtxt, Span, Vec<P<Expr>>) -> P<Expr>, 
🔬 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?

Call the method that is being derived on all the fields, and then process the collected results. i.e.

This example is not tested
f(cx, span, vec![self_1.method(__arg_1_1, __arg_2_1),
                 self_2.method(__arg_1_2, __arg_2_2)])