pub enum ElementNode {
Class(String, bool),
Id(String, bool),
Tag(String, bool),
Attr(String, Option<String>, bool),
}
Expand description
Element query node
Variants§
Class(String, bool)
Class selector: parameter, whether it’s a regex
Id(String, bool)
ID selector: parameter, whether it’s a regex
Tag(String, bool)
Tag selector: parameter, whether it’s a regex
Attr(String, Option<String>, bool)
Attribute selector: attribute name, attribute value (optional), whether it’s a regex
Trait Implementations§
Source§impl Clone for ElementNode
impl Clone for ElementNode
Source§fn clone(&self) -> ElementNode
fn clone(&self) -> ElementNode
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 Debug for ElementNode
impl Debug for ElementNode
Source§impl Display for ElementNode
impl Display for ElementNode
Source§impl PartialEq for ElementNode
impl PartialEq for ElementNode
impl StructuralPartialEq for ElementNode
Auto Trait Implementations§
impl Freeze for ElementNode
impl RefUnwindSafe for ElementNode
impl Send for ElementNode
impl Sync for ElementNode
impl Unpin for ElementNode
impl UnwindSafe for ElementNode
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