pub(crate) fn add_span_to_signature(span: Span, signature: &mut Signature) {
    signature.fn_token.span = signature.fn_token.span.join(span).unwrap_or_else(|| span);

    if let Some(token) = &mut signature.constness {
        token.span = token.span.join(span).unwrap_or_else(|| span);
    }

    if let Some(token) = &mut signature.asyncness {
        token.span = token.span.join(span).unwrap_or_else(|| span);
    }

    if let Some(token) = &mut signature.unsafety {
        token.span = token.span.join(span).unwrap_or_else(|| span);
    }

    if let Some(abi) = &mut signature.abi {
        abi.extern_token.span = abi.extern_token.span.join(span).unwrap_or_else(|| span);
    }
}
/// Incorporates the given span into the signature.
///
/// Ideally both are shown, when the function definition is shown.
Incorporates the given span into the signature.
Ideally both are shown, when the function definition is shown.
Incorporates the given span into the signature . Ideally both are shown when the function definition is shown .
pub(crate) fn add_span_to_signature(span: Span, signature: &mut Signature) {
    signature.fn_token.span = signature.fn_token.span.join(span).unwrap_or_else(|| span);
    if let Some(token) = &mut signature.constness {
        token.span = token.span.join(span).unwrap_or_else(|| span);
    }
    if let Some(token) = &mut signature.asyncness {
        token.span = token.span.join(span).unwrap_or_else(|| span);
    }
    if let Some(token) = &mut signature.unsafety {
        token.span = token.span.join(span).unwrap_or_else(|| span);
    }
    if let Some(abi) = &mut signature.abi {
        abi.extern_token.span = abi.extern_token.span.join(span).unwrap_or_else(|| span);
    }
}
pub ( crate ) fn add_span_to_signature ( span : Span , signature : & mut Signature ) { signature . fn_token . span = signature . fn_token . span . join ( span ) . unwrap_or_else ( | | span ) ; if let Some ( token ) = & mut signature . constness { token . span = token . span . join ( span ) . unwrap_or_else ( | | span ) ; } if let Some ( token ) = & mut signature . asyncness { token . span = token . span . join ( span ) . unwrap_or_else ( | | span ) ; } if let Some ( token ) = & mut signature . unsafety { token . span = token . span . join ( span ) . unwrap_or_else ( | | span ) ; } if let Some ( abi ) = & mut signature . abi { abi . extern_token . span = abi . extern_token . span . join ( span ) . unwrap_or_else ( | | span ) ; } }
Incorporates the given span into the signature.
Incorporates the given span into the signature .
span
Span
signature
&mut Signature
span
Span
signature
&mut Signature