Trait style::dom_apis::SelectorQuery
source · pub trait SelectorQuery<E: TElement> {
type Output;
// Required methods
fn should_stop_after_first_match() -> bool;
fn append_element(output: &mut Self::Output, element: E);
fn is_empty(output: &Self::Output) -> bool;
}
Expand description
A selector query abstraction, in order to be generic over QuerySelector and QuerySelectorAll.
Required Associated Types§
Required Methods§
sourcefn should_stop_after_first_match() -> bool
fn should_stop_after_first_match() -> bool
Whether the query should stop after the first element has been matched.
sourcefn append_element(output: &mut Self::Output, element: E)
fn append_element(output: &mut Self::Output, element: E)
Append an element matching after the first query.
Object Safety§
This trait is not object safe.