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