fn maybe_add_lifetime_params_comma(tokens: &mut Tokens, generics: &Generics) {
        // We may need to require a trailing comma if we have any ty_params.
        if !generics.lifetimes.empty_or_trailing() && !generics.ty_params.is_empty() {
            tokens::Comma::default().to_tokens(tokens);
        }
    }
/// We need a comma between the lifetimes list and the ty_params list if
/// there are more than 0 lifetimes, the lifetimes list didn't have a
/// trailing delimiter, and there are more than 0 type parameters. This is a
/// helper method for adding that comma.
We need a comma between the lifetimes list and the ty_params list if
there are more than 0 lifetimes, the lifetimes list didn't have a
trailing delimiter, and there are more than 0 type parameters. This is a
helper method for adding that comma.
We need a comma between the lifetimes list and the ty_params list if there are more than 0 lifetimes the lifetimes list didn ' t have a trailing delimiter and there are more than 0 type parameters . This is a helper method for adding that comma .
fn maybe_add_lifetime_params_comma(tokens: &mut Tokens, generics: &Generics) {
        // We may need to require a trailing comma if we have any ty_params.
        if !generics.lifetimes.empty_or_trailing() && !generics.ty_params.is_empty() {
            tokens::Comma::default().to_tokens(tokens);
        }
    }
fn maybe_add_lifetime_params_comma ( tokens : & mut Tokens , generics : & Generics ) { // We may need to require a trailing comma if we have any ty_params. if ! generics . lifetimes . empty_or_trailing ( ) && ! generics . ty_params . is_empty ( ) { tokens :: Comma :: default ( ) . to_tokens ( tokens ) ; } }
We need a comma between the lifetimes list and the ty_params list if
there are more than 0 lifetimes, the lifetimes list didn't have a
trailing delimiter, and there are more than 0 type parameters.
We need a comma between the lifetimes list and the ty_params list if there are more than 0 lifetimes the lifetimes list didn ' t have a trailing delimiter and there are more than 0 type parameters .
tokens
&mut Tokens
generics
&Generics
tokens
&mut Tokens
generics
&Generics