pub trait GenericsExt {
    // Required methods
    fn add_type_bound(&mut self, bounds: TypeParamBound);
    fn add_type_bounds(&mut self, bounds: Punctuated<TypeParamBound, Plus>);
    fn replace(&mut self, ident: &Ident, with: &Ident);
    fn replace_lifetime(&mut self, n: usize, with: &Lifetime) -> bool;
    fn insert_lifetime(&mut self, lifetime: LifetimeParam);
    fn bounded_types(
        &self,
        bounds: Punctuated<TypeParamBound, Plus>
    ) -> Punctuated<WherePredicate, Comma>;
    fn parsed_bounded_types(
        &self,
        bounds: TokenStream
    ) -> Result<Punctuated<WherePredicate, Comma>>;
    fn add_where_predicates(
        &mut self,
        predicates: Punctuated<WherePredicate, Comma>
    );
}

Required Methods§

Implementations on Foreign Types§

source§

impl GenericsExt for Generics

Implementors§