MarkdownOperations

Trait MarkdownOperations 

Source
pub trait MarkdownOperations {
    // Provided methods
    fn parse_markdown_with_context(
        content: impl AsRef<str>,
        path: impl AsRef<Path>,
    ) -> Result<MarkdownFile> { ... }
    fn read_markdown_with_context(
        path: impl AsRef<Path>,
    ) -> Result<MarkdownFile> { ... }
}
Expand description

Common markdown operations with consistent error handling

Provided Methods§

Source

fn parse_markdown_with_context( content: impl AsRef<str>, path: impl AsRef<Path>, ) -> Result<MarkdownFile>

Parse markdown content with appropriate error context

Source

fn read_markdown_with_context(path: impl AsRef<Path>) -> Result<MarkdownFile>

Read and parse a markdown file with appropriate error context

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§