rustc_builtin_macros::deriving::generic

Function cs_fold

source
pub(crate) fn cs_fold<F>(
    use_foldl: bool,
    cx: &ExtCtxt<'_>,
    trait_span: Span,
    substructure: &Substructure<'_>,
    f: F,
) -> P<Expr>
where F: FnMut(&ExtCtxt<'_>, CsFold<'_>) -> P<Expr>,
Expand description

Folds over fields, combining the expressions for each field in a sequence. Statics may not be folded over.