Enum askama_shared::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]
impl<T> MarkupDisplay<T> where
T: Display,
pub fn mark_safe(self) -> MarkupDisplay<T>
[src]
pub fn mark_safe(self) -> MarkupDisplay<T>
pub fn unsafe_string(&self) -> String
[src]
pub fn unsafe_string(&self) -> String
Trait Implementations
impl<T: Debug> Debug for MarkupDisplay<T> where
T: Display,
[src]
impl<T: Debug> Debug for MarkupDisplay<T> where
T: Display,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for MarkupDisplay<T> where
T: Display,
[src]
impl<T: PartialEq> PartialEq for MarkupDisplay<T> where
T: Display,
fn eq(&self, other: &MarkupDisplay<T>) -> bool
[src]
fn eq(&self, other: &MarkupDisplay<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MarkupDisplay<T>) -> bool
[src]
fn ne(&self, other: &MarkupDisplay<T>) -> bool
This method tests for !=
.
impl<T> From<T> for MarkupDisplay<T> where
T: Display,
[src]
impl<T> From<T> for MarkupDisplay<T> where
T: Display,
fn from(t: T) -> MarkupDisplay<T>
[src]
fn from(t: T) -> MarkupDisplay<T>
Performs the conversion.
impl<T> Display for MarkupDisplay<T> where
T: Display,
[src]
impl<T> Display for MarkupDisplay<T> where
T: Display,
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,