pub struct ElementSelector {
pub by: By,
pub filters: Vec<ElementPredicate>,
}
Expand description
An ElementSelector contains a selector method (By) as well as zero or more filters. The filters will be applied to any elements matched by the selector. Selectors and filters all run in full on every poll iteration.
Fields§
§by: By
§filters: Vec<ElementPredicate>
Implementations§
Source§impl ElementSelector
impl ElementSelector
pub fn new(by: By) -> Self
Sourcepub fn add_filter(&mut self, f: ElementPredicate)
pub fn add_filter(&mut self, f: ElementPredicate)
Add the specified filter to the list of filters for this selector.
Auto Trait Implementations§
impl Freeze for ElementSelector
impl !RefUnwindSafe for ElementSelector
impl Send for ElementSelector
impl Sync for ElementSelector
impl Unpin for ElementSelector
impl !UnwindSafe for ElementSelector
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