pub enum ElementContent<'a> {
HtmlElement(Box<HtmlElement<'a>>),
LiteralContent(&'a str),
}
Expand description
Possible content of an element
Variants§
HtmlElement(Box<HtmlElement<'a>>)
LiteralContent(&'a str)
Implementations§
Trait Implementations§
Source§impl<'a> Debug for ElementContent<'a>
impl<'a> Debug for ElementContent<'a>
Source§impl<'a> PartialEq for ElementContent<'a>
impl<'a> PartialEq for ElementContent<'a>
impl<'a> StructuralPartialEq for ElementContent<'a>
Auto Trait Implementations§
impl<'a> Freeze for ElementContent<'a>
impl<'a> RefUnwindSafe for ElementContent<'a>
impl<'a> Send for ElementContent<'a>
impl<'a> Sync for ElementContent<'a>
impl<'a> Unpin for ElementContent<'a>
impl<'a> UnwindSafe for ElementContent<'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