pub enum ElementKind {
Tag(String),
Text(String),
Fragment,
ComponentRef(ComponentRef),
Empty,
}Expand description
The kind of element.
Variants§
Tag(String)
An HTML/DOM tag (div, span, button, etc.)
Text(String)
Plain text content
Fragment
A fragment (multiple elements without wrapper)
ComponentRef(ComponentRef)
A component reference (for nested components)
Empty
An empty element (renders nothing)
Trait Implementations§
Source§impl Clone for ElementKind
impl Clone for ElementKind
Source§fn clone(&self) -> ElementKind
fn clone(&self) -> ElementKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElementKind
impl Debug for ElementKind
Source§impl PartialEq for ElementKind
impl PartialEq for ElementKind
impl StructuralPartialEq for ElementKind
Auto Trait Implementations§
impl Freeze for ElementKind
impl !RefUnwindSafe for ElementKind
impl Send for ElementKind
impl Sync for ElementKind
impl Unpin for ElementKind
impl UnsafeUnpin for ElementKind
impl !UnwindSafe for ElementKind
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