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]
pub 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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Clone + AsRef<str>> Clone for PreEscaped<T>
[src]
fn clone(&self) -> PreEscaped<T>
[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<T: Copy + AsRef<str>> Copy 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
.
impl<T: AsRef<str> + Into<String>> Into<String> for PreEscaped<T>
[src]
Auto Trait Implementations
impl<T> Send for PreEscaped<T> where
T: Send,
T: Send,
impl<T> Sync for PreEscaped<T> where
T: Sync,
T: Sync,