pub enum Node<'a> {
Text(Text),
Comment(Comment),
Element(Element<'a, Vec<Node<'a>>>),
Void(Element<'a, ()>),
}
Expand description
Describes all potential shapes of a html element Note that there are only three kinds, text nodes, comment nodes, and element nodes but an element node can be void, or have children
Variants§
Implementations§
Trait Implementations§
Source§impl<'a> From<BodyElement> for Node<'a>
impl<'a> From<BodyElement> for Node<'a>
Source§fn from(value: BodyElement) -> Self
fn from(value: BodyElement) -> Self
Converts to this type from the input type.
Source§impl<'a> From<StyleSheet> for Node<'a>
impl<'a> From<StyleSheet> for Node<'a>
Source§fn from(value: StyleSheet) -> Self
fn from(value: StyleSheet) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Node<'a>
impl<'a> RefUnwindSafe for Node<'a>
impl<'a> Send for Node<'a>
impl<'a> Sync for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> UnwindSafe for Node<'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