Enum askama::MarkupDisplay
[−]
[src]
pub enum MarkupDisplay<T> where
T: Display, {
Safe(T),
Unsafe(T),
}
Variants
Safe(T)
Unsafe(T)
Methods
impl<T> MarkupDisplay<T> where
T: Display,
[src]
T: Display,
pub fn mark_safe(self) -> MarkupDisplay<T>
[src]
pub fn unsafe_string(&self) -> String
[src]
Trait Implementations
impl<T> Display for MarkupDisplay<T> where
T: Display,
[src]
T: Display,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<T> PartialEq<MarkupDisplay<T>> for MarkupDisplay<T> where
T: PartialEq<T> + Display,
[src]
T: PartialEq<T> + Display,
fn eq(&self, __arg_0: &MarkupDisplay<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MarkupDisplay<T>) -> bool
[src]
This method tests for !=
.
impl<T> From<T> for MarkupDisplay<T> where
T: Display,
[src]
T: Display,
fn from(t: T) -> MarkupDisplay<T>
[src]
Performs the conversion.
impl<T> Debug for MarkupDisplay<T> where
T: Debug + Display,
[src]
T: Debug + Display,
Auto Trait Implementations
impl<T> Send for MarkupDisplay<T> where
T: Send,
T: Send,
impl<T> Sync for MarkupDisplay<T> where
T: Sync,
T: Sync,