fn lifetimes_to_generics(lv: Vec<GenericParam>) -> Generics {
    if lv.is_empty() {
            Generics::default()
    } else {
        Generics {
            lt_token: Some(Token![<](lv[0].span())),
            gt_token: Some(Token![>](lv[0].span())),
            params: Punctuated::from_iter(lv.into_iter()),
            // XXX this assumes that none of the lifetimes are referenced by the
            // where clause
            where_clause: None
        }
    }
}
/// Transform a Vec of lifetimes into a Generics
Transform a Vec of lifetimes into a Generics
Transform a Vec of lifetimes into a Generics
fn lifetimes_to_generics(lv: Vec<GenericParam>) -> Generics {
    if lv.is_empty() {
            Generics::default()
    } else {
        Generics {
            lt_token: Some(Token![<](lv[0].span())),
            gt_token: Some(Token![>](lv[0].span())),
            params: Punctuated::from_iter(lv.into_iter()),
            // XXX this assumes that none of the lifetimes are referenced by the
            // where clause
            where_clause: None
        }
    }
}
fn lifetimes_to_generics ( lv : Vec < GenericParam > ) -> Generics { if lv . is_empty ( ) { Generics :: default ( ) } else { Generics { lt_token : Some ( Token ! [ ] ( lv [ 0 ] . span ( ) ) ) , gt_token : Some ( Token ! [ ] ( lv [ 0 ] . span ( ) ) ) , params : Punctuated :: from_iter ( lv . into_iter ( ) ) , // XXX this assumes that none of the lifetimes are referenced by the // where clause where_clause : None } } }
Transform a Vec of lifetimes into a Generics
Transform a Vec of lifetimes into a Generics
lv
Vec<GenericParam>
lv
Vec<GenericParam>