render_function_definition

Function render_function_definition 

Source
pub fn render_function_definition(
    md: &mut String,
    name: &str,
    f: &Function,
    type_renderer: &TypeRenderer<'_>,
)
Expand description

Render a function definition to markdown.

Produces a heading with the function name, followed by a Rust code block showing the full signature with modifiers (const, async, unsafe).

ยงArguments

  • md - Output markdown string
  • name - The function name
  • f - The function data from rustdoc
  • type_renderer - Type renderer for parameter and return types