Struct gazetta_render_ext::Markdown
[−]
[src]
pub struct Markdown<'a> { /* fields omitted */ }
Markdown renderer
Methods
impl<'a> Markdown<'a>
[src]
pub fn new(data: &'a str, base: &'a str) -> Markdown<'a>
[src]
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> Debug for Markdown<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> Copy for Markdown<'a>
[src]
impl<'a> Clone for Markdown<'a>
[src]
fn clone(&self) -> Markdown<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> PartialEq for Markdown<'a>
[src]
fn eq(&self, __arg_0: &Markdown<'a>) -> bool
[src]
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
[src]
This method tests for !=
.
impl<'a> Eq for Markdown<'a>
[src]
impl<'a> RenderOnce for Markdown<'a>
[src]
fn render_once(self, tmpl: &mut TemplateBuffer)
[src]
Render this into a template buffer.
fn size_hint(&self) -> usize
[src]
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)
[src]
Render this into a template buffer.
impl<'a> Render for Markdown<'a>
[src]
fn render(&self, tmpl: &mut TemplateBuffer)
[src]
Render this into a template buffer.