Skip to main content

implicit_details_from_attrs

Function implicit_details_from_attrs 

Source
pub(crate) fn implicit_details_from_attrs(attrs: &[Attribute]) -> Option<String>
Expand description

Extract the implicit details from doc attributes (paragraphs 3+).

In roxygen2, paragraph 1 is the title, paragraph 2 is the description, and paragraphs 3+ become \details{}. This function skips paragraphs 1 and 2 and returns the remaining free-form paragraphs (before the first @tag) joined with \n\n.

Returns None if there are fewer than 3 paragraphs, no doc comments, or if docs start with a @tag.