pub struct NodeData { /* private fields */ }
Expand description
An HTML element.
Implementations§
source§impl NodeData
impl NodeData
sourcepub fn classes(&self) -> HtmlClasses<'_> ⓘ
pub fn classes(&self) -> HtmlClasses<'_> ⓘ
Returns an iterator over the element’s classes.
sourcepub fn get_attribute(&self, attr: &str) -> Option<&str>
pub fn get_attribute(&self, attr: &str) -> Option<&str>
Returns the value of an attribute.
sourcepub fn has_attribute(&self, attr: &str) -> bool
pub fn has_attribute(&self, attr: &str) -> bool
Returns true if the element has the attribute.
sourcepub fn attributes(&self) -> HtmlAttributes<'_> ⓘ
pub fn attributes(&self) -> HtmlAttributes<'_> ⓘ
Returns an iterator over the element’s attributes.
Trait Implementations§
source§impl PartialEq<NodeData> for NodeData
impl PartialEq<NodeData> for NodeData
impl Eq for NodeData
impl StructuralEq for NodeData
impl StructuralPartialEq for NodeData
Auto Trait Implementations§
impl !RefUnwindSafe for NodeData
impl Send for NodeData
impl !Sync for NodeData
impl Unpin for NodeData
impl UnwindSafe for NodeData
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.