Function rustdoc::html::render::cache::get_generics[][src]

fn get_generics(clean_type: &Type) -> Option<Vec<String>>
Expand description

Return a list of generic parameters for use in the search index.

This function replaces bounds with types, so that T where T: Debug just becomes Debug. It does return duplicates, and that’s intentional, since search queries like Result<usize, usize> are supposed to match only results where both parameters are usize.