fn collect_beginning_verts(
    context: &RewriteContext<'_>,
    arms: &[ast::Arm],
    span: Span,
) -> Vec<Option<BytePos>> {
    let mut beginning_verts = Vec::with_capacity(arms.len());
    let mut lo = context.snippet_provider.span_after(span, "{");
    for arm in arms {
        let hi = arm.pats[0].span.lo();
        let missing_span = mk_sp(lo, hi);
        beginning_verts.push(context.snippet_provider.opt_span_before(missing_span, "|"));
        lo = arm.span().hi();
    }
    beginning_verts
}
/// Collect a byte position of the beginning `|` for each arm, if available.
Collect a byte position of the beginning `|` for each arm, if available.
Collect a byte position of the beginning ` | ` for each arm if available .
fn collect_beginning_verts(
    context: &RewriteContext<'_>,
    arms: &[ast::Arm],
    span: Span,
) -> Vec<Option<BytePos>> {
    let mut beginning_verts = Vec::with_capacity(arms.len());
    let mut lo = context.snippet_provider.span_after(span, "{");
    for arm in arms {
        let hi = arm.pats[0].span.lo();
        let missing_span = mk_sp(lo, hi);
        beginning_verts.push(context.snippet_provider.opt_span_before(missing_span, "|"));
        lo = arm.span().hi();
    }
    beginning_verts
}
fn collect_beginning_verts ( context : & RewriteContext < ' _ > , arms : & [ ast :: Arm ] , span : Span , ) -> Vec < Option < BytePos > > { let mut beginning_verts = Vec :: with_capacity ( arms . len ( ) ) ; let mut lo = context . snippet_provider . span_after ( span , " " ) ; for arm in arms { let hi = arm . pats [ 0 ] . span . lo ( ) ; let missing_span = mk_sp ( lo , hi ) ; beginning_verts . push ( context . snippet_provider . opt_span_before ( missing_span , " " ) ) ; lo = arm . span ( ) . hi ( ) ; } beginning_verts }
Collect a byte position of the beginning `|` for each arm, if available.
Collect a byte position of the beginning ` | ` for each arm if available .
context
&RewriteContext<'_>
arms
&[ast::Arm]
span
Span
context
&RewriteContext<'_>
arms
&[ast::Arm]
span
Span