Skip to main content

ToMarkdown

Trait ToMarkdown 

Source
pub trait ToMarkdown {
    // Required method
    fn write_markdown<W: Write>(&self, writer: &mut W) -> Result<(), CoreError>;

    // Provided method
    fn to_markdown_string(&self) -> Result<String, CoreError> { ... }
}

Required Methods§

Source

fn write_markdown<W: Write>(&self, writer: &mut W) -> Result<(), CoreError>

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: ToMarkdownWith<Context = C>, C: Default> ToMarkdown for T