render_struct_fields

Function render_struct_fields 

Source
pub fn render_struct_fields<F>(
    md: &mut String,
    fields: &[Id],
    krate: &Crate,
    type_renderer: &TypeRenderer<'_>,
    process_docs: F,
)
where F: Fn(&Item) -> Option<String>,
Expand description

Render documented struct fields to markdown.

Produces a “Fields” section with each documented field as a bullet point showing the field name, type, and documentation.

§Arguments

  • md - Output markdown string
  • fields - Field IDs from the struct
  • krate - Crate containing field definitions
  • type_renderer - Type renderer for field types
  • process_docs - Closure to process documentation with intra-doc link resolution