Struct gazetta_render_ext::Markdown [] [src]

pub struct Markdown<'a> {
    // some fields omitted
}

Markdown renderer

Methods

impl<'a> Markdown<'a>
[src]

fn new(data: &'a str, base: &'a str) -> Markdown<'a>

Create a new markdown renderer.

data should contain the markdown to be rendered and base should specify a relative url prefix (for relative links and images).

Note: base will only affect markdown links and images, not inline html ones.

Trait Implementations

impl<'a> Eq for Markdown<'a>
[src]

impl<'a> PartialEq for Markdown<'a>
[src]

fn eq(&self, __arg_0: &Markdown<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Markdown<'a>) -> bool

This method tests for !=.

impl<'a> Clone for Markdown<'a>
[src]

fn clone(&self) -> Markdown<'a>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'a> Copy for Markdown<'a>
[src]

impl<'a> Debug for Markdown<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> RenderOnce for Markdown<'a>
[src]

fn render_once(self, tmpl: &mut TemplateBuffer)

Render this into a template buffer.

fn size_hint(&self) -> usize

Returns a (very) rough estimate of how many bytes this Render will use.

impl<'a> RenderMut for Markdown<'a>
[src]

fn render_mut(&mut self, tmpl: &mut TemplateBuffer)

Render this into a template buffer.

impl<'a> Render for Markdown<'a>
[src]

fn render(&self, tmpl: &mut TemplateBuffer)

Render this into a template buffer.