pub fn generics_as_args(generics: &Generics) -> PathArguments
Expand description

Converts a Generics object to a corresponding PathArguments object.

For example, could be used to convert <T: 'static, U: From<T>> to <T, U> in the following:

struct MyType<T: 'static, U: From<T>>(T, U);

impl<T: 'static, U: From<T>> MyType<T, U> {}