Struct note_mark::html::ElementNode
source · 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>>,
}
Fields§
§tag: ElementTag
§id: Vec<String>
§class: Vec<String>
§href: Option<String>
§attrs: Vec<(String, String)>
§children: Vec<Node<'a>>
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 copy 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<'a> Debug for ElementNode<'a>
impl<'a> Debug for ElementNode<'a>
source§impl Default for ElementNode<'_>
impl Default for ElementNode<'_>
source§impl<'a> PartialEq<ElementNode<'a>> for ElementNode<'a>
impl<'a> PartialEq<ElementNode<'a>> for ElementNode<'a>
source§fn eq(&self, other: &ElementNode<'a>) -> bool
fn eq(&self, other: &ElementNode<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.