pub enum HtmlContent<'a> {
Tag(HtmlTag<'a>),
SelfClosingTag(HtmlSelfClosingTag<'a>),
EscapedText(EscapedText<'a>),
UnescapedText(UnescapedText<'a>),
Fragment(Fragment<'a>),
None,
}Variants§
Tag(HtmlTag<'a>)
SelfClosingTag(HtmlSelfClosingTag<'a>)
EscapedText(EscapedText<'a>)
UnescapedText(UnescapedText<'a>)
Fragment(Fragment<'a>)
None
Trait Implementations§
Source§impl<'a> Debug for HtmlContent<'a>
impl<'a> Debug for HtmlContent<'a>
Source§impl<'a> Display for HtmlContent<'a>
impl<'a> Display for HtmlContent<'a>
Source§impl<'a> From<&'a &'static str> for HtmlContent<'static>
impl<'a> From<&'a &'static str> for HtmlContent<'static>
Source§fn from(value: &'a &'static str) -> HtmlContent<'static>
fn from(value: &'a &'static str) -> HtmlContent<'static>
Converts to this type from the input type.
Source§impl<'a> From<&'a String> for HtmlContent<'a>
impl<'a> From<&'a String> for HtmlContent<'a>
Source§fn from(value: &'a String) -> HtmlContent<'a>
fn from(value: &'a String) -> HtmlContent<'a>
Converts to this type from the input type.
Source§impl<'a> From<&'a str> for HtmlContent<'a>
impl<'a> From<&'a str> for HtmlContent<'a>
Source§fn from(value: &'a str) -> HtmlContent<'a>
fn from(value: &'a str) -> HtmlContent<'a>
Converts to this type from the input type.
Source§impl<'a> From<Fragment<'a>> for HtmlContent<'a>
impl<'a> From<Fragment<'a>> for HtmlContent<'a>
Source§fn from(tag: Fragment<'a>) -> HtmlContent<'a>
fn from(tag: Fragment<'a>) -> HtmlContent<'a>
Converts to this type from the input type.
Source§impl<'a> From<HtmlSelfClosingTag<'a>> for HtmlContent<'a>
impl<'a> From<HtmlSelfClosingTag<'a>> for HtmlContent<'a>
Source§fn from(tag: HtmlSelfClosingTag<'a>) -> HtmlContent<'a>
fn from(tag: HtmlSelfClosingTag<'a>) -> HtmlContent<'a>
Converts to this type from the input type.
Source§impl<'a> From<HtmlTag<'a>> for HtmlContent<'a>
impl<'a> From<HtmlTag<'a>> for HtmlContent<'a>
Source§fn from(tag: HtmlTag<'a>) -> HtmlContent<'a>
fn from(tag: HtmlTag<'a>) -> HtmlContent<'a>
Converts to this type from the input type.
Source§impl<'a> From<Option<HtmlContent<'a>>> for HtmlContent<'a>
impl<'a> From<Option<HtmlContent<'a>>> for HtmlContent<'a>
Source§fn from(value: Option<HtmlContent<'a>>) -> HtmlContent<'a>
fn from(value: Option<HtmlContent<'a>>) -> HtmlContent<'a>
Converts to this type from the input type.
Source§impl From<String> for HtmlContent<'static>
impl From<String> for HtmlContent<'static>
Source§fn from(value: String) -> HtmlContent<'static>
fn from(value: String) -> HtmlContent<'static>
Converts to this type from the input type.
Source§impl<'a> From<UnescapedText<'a>> for HtmlContent<'a>
impl<'a> From<UnescapedText<'a>> for HtmlContent<'a>
Source§fn from(tag: UnescapedText<'a>) -> HtmlContent<'a>
fn from(tag: UnescapedText<'a>) -> HtmlContent<'a>
Converts to this type from the input type.
Source§impl<'a> FromIterator<HtmlContent<'a>> for Fragment<'a>
impl<'a> FromIterator<HtmlContent<'a>> for Fragment<'a>
Source§fn from_iter<I: IntoIterator<Item = HtmlContent<'a>>>(iter: I) -> Fragment<'a>
fn from_iter<I: IntoIterator<Item = HtmlContent<'a>>>(iter: I) -> Fragment<'a>
Creates a value from an iterator. Read more
Source§impl<'a> IntoIterator for HtmlContent<'a>
impl<'a> IntoIterator for HtmlContent<'a>
Source§impl<'a> PartialEq for HtmlContent<'a>
impl<'a> PartialEq for HtmlContent<'a>
impl<'a> StructuralPartialEq for HtmlContent<'a>
Auto Trait Implementations§
impl<'a> Freeze for HtmlContent<'a>
impl<'a> RefUnwindSafe for HtmlContent<'a>
impl<'a> Send for HtmlContent<'a>
impl<'a> Sync for HtmlContent<'a>
impl<'a> Unpin for HtmlContent<'a>
impl<'a> UnwindSafe for HtmlContent<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more