Rust doc extraction
Rust doc extraction
Extracts Rust doc comments (//! module docs, /// / #[doc = "..."]
item docs) from one *.rs file into a single Markdown page body. Kept
behind this one function (extract_page) so a second language can be
added later without introducing a trait for a single implementation.
extract_page
pub fn extract_page(path : & str, source : & str, stem : & str, include_private : bool,) -> Result < Option < String >, RustDocError >;
Builds the Markdown page body for one .rs file, or None if it carries
no doc comments at all (no module docs, no documented item).