Struct maud::PreEscaped
[−]
[src]
pub struct PreEscaped<T: AsRef<str>>(pub T);
A wrapper that renders the inner value without escaping.
Methods
impl<T: AsRef<str> + Into<String>> PreEscaped<T>
[src]
fn into_string(self) -> String
[src]
Converts the inner value to a string.
Trait Implementations
impl Modifier<Response> for PreEscaped<String>
[src]
impl WriteBody for PreEscaped<String>
[src]
fn write_body(&mut self, body: &mut Write) -> Result<()>
[src]
Writes the body to the provided Write
.
impl Responder<'static> for PreEscaped<String>
[src]
fn respond_to(self, _: &Request) -> Result<Response<'static>, Status>
[src]
Returns Ok
if a Response
could be generated successfully. Otherwise, returns an Err
with a failing Status
. Read more
impl<T: Debug + AsRef<str>> Debug for PreEscaped<T>
[src]
impl<T: AsRef<str>> Render for PreEscaped<T>
[src]
fn render_to(&self, w: &mut String)
[src]
Appends a representation of self
to the given buffer. Read more
fn render(&self) -> Markup
[src]
Renders self
as a block of Markup
.