rustdoc::html::render::search_index

Function get_fn_inputs_and_outputs

Source
fn get_fn_inputs_and_outputs(
    func: &Function,
    tcx: TyCtxt<'_>,
    impl_or_trait_generics: Option<&(Type, Generics)>,
    cache: &Cache,
) -> (Vec<RenderType>, Vec<RenderType>, Vec<Symbol>, Vec<Vec<RenderType>>)
Expand description

Return the full list of types when bounds have been resolved.

i.e. fn foo<A: Display, B: Option<A>>(x: u32, y: B) will return [u32, Display, Option].