Function impl_tools_lib::generics::impl_generics
source · [−]pub fn impl_generics(generics: &Generics, subst: &TokenStream) -> TokenStreamExpand description
Generate impl_generics tokens
This is the equivalent of the first item output by
syn::Generics::split_for_impl. Any instance of trait as a parameter
bound is replaced by subst.
Note: the ty_generics generated by syn::Generics::split_for_impl may
be used directly.