[][src]Struct quickmd::markdown::Renderer

pub struct Renderer {
    pub display_md_path: PathBuf,
    pub canonical_md_path: PathBuf,
}

Encapsulates a markdown file and provides an interface to turn its contents into HTML.

Fields

display_md_path: PathBuf

A short, user-friendly path to show in UI.

canonical_md_path: PathBuf

The canonicalized path to use in file operations.

Methods

impl Renderer[src]

pub fn new(md_path: PathBuf) -> Self[src]

Create a new renderer instance that wraps the given markdown file.

pub fn run(&self) -> Result<String, Error>[src]

Turn the current contents of the markdown file into HTML.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,