extract_template_parameters

Function extract_template_parameters 

Source
pub fn extract_template_parameters(entity: &Entity<'_>) -> Vec<String>
Expand description

Extract template type parameters from a template entity

For template<typename T, typename U>, this returns [“T”, “U”] Works with ClassTemplateDecl and FunctionTemplateDecl