pub enum Element {
Text(TextElement),
Html(HtmlElement),
}Expand description
A DOM element.
Variants§
Trait Implementations§
Source§impl From<TextElement> for Element
impl From<TextElement> for Element
Source§fn from(value: TextElement) -> Self
fn from(value: TextElement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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