Trait starlark::docs::markdown::RenderMarkdown
source · pub trait RenderMarkdown {
// Required method
fn render_markdown_opt(&self, flavor: MarkdownFlavor) -> Option<String>;
// Provided method
fn render_markdown(&self, flavor: MarkdownFlavor) -> String { ... }
}
Expand description
This object can potentially generate markdown documentation about itself.
Required Methods§
sourcefn render_markdown_opt(&self, flavor: MarkdownFlavor) -> Option<String>
fn render_markdown_opt(&self, flavor: MarkdownFlavor) -> Option<String>
Generate markdown of the given flavor if possible. For some types, there may not be any useful documentation available.
Provided Methods§
sourcefn render_markdown(&self, flavor: MarkdownFlavor) -> String
fn render_markdown(&self, flavor: MarkdownFlavor) -> String
Convenience method that invokes RenderMarkdown::render_markdown_opt
, and returns an
empty string if that is None