rustfmt_nightly::closures

Function rewrite_closure_fn_decl

Source
fn rewrite_closure_fn_decl(
    binder: &ClosureBinder,
    constness: Const,
    capture: CaptureBy,
    coroutine_kind: &Option<CoroutineKind>,
    movability: Movability,
    fn_decl: &FnDecl,
    body: &Expr,
    span: Span,
    context: &RewriteContext<'_>,
    shape: Shape,
) -> Result<(String, usize), RewriteError>