Struct horrorshow::Raw [] [src]

pub struct Raw<S: AsRef<str>>(_);

Raw content marker.

When rendered, raw content will not be escaped.

Methods

impl<S> Raw<S> where S: AsRef<str>
[src]

fn new(content: S) -> Raw<S>

Mark as raw.

Trait Implementations

impl<S: Copy + AsRef<str>> Copy for Raw<S>
[src]

impl<S: Clone + AsRef<str>> Clone for Raw<S>
[src]

fn clone(&self) -> Raw<S>

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<S: PartialOrd + AsRef<str>> PartialOrd for Raw<S>
[src]

fn partial_cmp(&self, __arg_0: &Raw<S>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more

fn lt(&self, __arg_0: &Raw<S>) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more

fn le(&self, __arg_0: &Raw<S>) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

fn gt(&self, __arg_0: &Raw<S>) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more

fn ge(&self, __arg_0: &Raw<S>) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<S: Ord + AsRef<str>> Ord for Raw<S>
[src]

fn cmp(&self, __arg_0: &Raw<S>) -> Ordering

This method returns an Ordering between self and other. Read more

impl<S: PartialEq + AsRef<str>> PartialEq for Raw<S>
[src]

fn eq(&self, __arg_0: &Raw<S>) -> bool

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

fn ne(&self, __arg_0: &Raw<S>) -> bool

This method tests for !=.

impl<S: Eq + AsRef<str>> Eq for Raw<S>
[src]

impl<S> Deref for Raw<S> where S: AsRef<str>
[src]

type Target = S

The resulting type after dereferencing

fn deref(&self) -> &S

The method called to dereference a value

impl<S> RenderOnce for Raw<S> where S: AsRef<str>
[src]

fn render_once(self, tmpl: &mut TemplateBuilder)

Render this into a template builder.

fn size_hint(&self) -> usize

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

impl<S> RenderMut for Raw<S> where S: AsRef<str>
[src]

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

Render this into a template builder.

impl<S> Render for Raw<S> where S: AsRef<str>
[src]

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

Render this into a template builder.