pub struct ElementNode<'a> {
pub tag: ElementTag,
pub id: Vec<String>,
pub class: Vec<String>,
pub href: Option<String>,
pub attrs: Vec<(String, String)>,
pub children: Vec<Node<'a>>,
}
Expand description
The struct to represent an HTML element node.
Fields§
§tag: ElementTag
The tag of this element.
id: Vec<String>
The id of this element.
class: Vec<String>
The classes of this element.
href: Option<String>
The href of this element.
attrs: Vec<(String, String)>
The attributes of this element.
children: Vec<Node<'a>>
The children of this element.
Trait Implementations§
Source§impl<'a> Clone for ElementNode<'a>
impl<'a> Clone for ElementNode<'a>
Source§fn clone(&self) -> ElementNode<'a>
fn clone(&self) -> ElementNode<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for ElementNode<'a>
impl<'a> Debug for ElementNode<'a>
Source§impl Default for ElementNode<'_>
impl Default for ElementNode<'_>
Source§impl<'a> PartialEq for ElementNode<'a>
impl<'a> PartialEq for ElementNode<'a>
impl<'a> Eq for ElementNode<'a>
impl<'a> StructuralPartialEq for ElementNode<'a>
Auto Trait Implementations§
impl<'a> Freeze for ElementNode<'a>
impl<'a> RefUnwindSafe for ElementNode<'a>
impl<'a> Send for ElementNode<'a>
impl<'a> Sync for ElementNode<'a>
impl<'a> Unpin for ElementNode<'a>
impl<'a> UnwindSafe for ElementNode<'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