Struct maud::PreEscaped
source · pub struct PreEscaped<T: AsRef<str>>(pub T);
Expand description
A wrapper that renders the inner value without escaping.
Tuple Fields§
§0: T
Implementations§
source§impl<T: AsRef<str> + Into<String>> PreEscaped<T>
impl<T: AsRef<str> + Into<String>> PreEscaped<T>
sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Converts the inner value to a string.
Trait Implementations§
source§impl<T: Clone + AsRef<str>> Clone for PreEscaped<T>
impl<T: Clone + AsRef<str>> Clone for PreEscaped<T>
source§fn clone(&self) -> PreEscaped<T>
fn clone(&self) -> PreEscaped<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: AsRef<str> + Into<String>> From<PreEscaped<T>> for String
impl<T: AsRef<str> + Into<String>> From<PreEscaped<T>> for String
source§fn from(value: PreEscaped<T>) -> String
fn from(value: PreEscaped<T>) -> String
Converts to this type from the input type.
source§impl IntoResponse for PreEscaped<String>
impl IntoResponse for PreEscaped<String>
source§fn into_response(self) -> Response<BoxBody>
fn into_response(self) -> Response<BoxBody>
Create a response.
source§impl Responder<'static> for PreEscaped<String>
impl Responder<'static> for PreEscaped<String>
source§impl Responder for PreEscaped<String>
impl Responder for PreEscaped<String>
type Body = String
source§fn respond_to(self, _req: &HttpRequest) -> HttpResponse<Self::Body>
fn respond_to(self, _req: &HttpRequest) -> HttpResponse<Self::Body>
Convert self to
HttpResponse
.impl<T: Copy + AsRef<str>> Copy for PreEscaped<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for PreEscaped<T>where T: RefUnwindSafe,
impl<T> Send for PreEscaped<T>where T: Send,
impl<T> Sync for PreEscaped<T>where T: Sync,
impl<T> Unpin for PreEscaped<T>where T: Unpin,
impl<T> UnwindSafe for PreEscaped<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,
Converts
self
into a collection.