Skip to main content

format_generics_for_item

Function format_generics_for_item 

Source
pub fn format_generics_for_item(item: &Item, kind: &str) -> String
Expand description

Extract generic params from the inner block of any item kind (struct/enum/trait/type alias). Returns a formatted <T, 'a, const N: usize> string, or empty string if none.