Skip to main content

render_yard_sections

Function render_yard_sections 

Source
pub fn render_yard_sections(sections: &RustdocSections) -> String
Expand description

Render RustdocSections as YARD documentation comment body.

  • # Arguments@param name desc (one per arg)
  • # Returns@return desc
  • # Errors@raise desc
  • # Example@example block.

Output is a plain string with \n separators; the emitter wraps each line in # itself.