convert_json_string

Function convert_json_string 

Source
pub fn convert_json_string(
    json_data: &str,
    include_private: bool,
) -> Result<String, Error>
Expand description

Convert rustdoc JSON data (already loaded) to markdown.

Use this if you want more control over the loading and writing process.

§Arguments

  • json_data - The rustdoc JSON as a string
  • include_private - Whether to include private items

§Returns

Returns the markdown as a String, or an error.