pub fn render_struct_fields<F>(
md: &mut String,
fields: &[Id],
krate: &Crate,
type_renderer: &TypeRenderer<'_>,
process_docs: F,
)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 stringfields- Field IDs from the structkrate- Crate containing field definitionstype_renderer- Type renderer for field typesprocess_docs- Closure to process documentation with intra-doc link resolution