pub enum Node<MSG> {
Element(Element<MSG>),
Fragment(Vec<Node<MSG>>),
Text(Leaf<MSG>),
Comment(Leaf<MSG>),
DocType(Leaf<MSG>),
}Variants§
Element(Element<MSG>)
Fragment(Vec<Node<MSG>>)
Text(Leaf<MSG>)
Comment(Leaf<MSG>)
DocType(Leaf<MSG>)
Implementations§
Source§impl<MSG> Node<MSG>
impl<MSG> Node<MSG>
pub fn extend_attrs(&mut self, attrs: impl IntoIterator<Item = Attribute<MSG>>)
pub fn extend_children(&mut self, children: impl IntoIterator<Item = Node<MSG>>)
Trait Implementations§
Source§impl<MSG> NodeMapMsg<MSG> for Node<MSG>where
MSG: 'static,
impl<MSG> NodeMapMsg<MSG> for Node<MSG>where
MSG: 'static,
impl<MSG> StructuralPartialEq for Node<MSG>
Auto Trait Implementations§
impl<MSG> Freeze for Node<MSG>
impl<MSG> !RefUnwindSafe for Node<MSG>
impl<MSG> !Send for Node<MSG>
impl<MSG> !Sync for Node<MSG>
impl<MSG> Unpin for Node<MSG>
impl<MSG> !UnwindSafe for Node<MSG>
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