cs_fold in rustc_builtin_macros::deriving::generic - Rust
Description: Folds over fields, combining the expressions for each field in a sequence. Statics may not be folded over.

Skip to main content

## cs_fold

# Function cs_fold

Source

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

Expand description

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