Struct kuchiki::Selector
[−]
[src]
pub struct Selector(_);
A pre-compiled CSS Selector.
Methods
impl Selector
[src]
fn matches(&self, element: &NodeDataRef<ElementData>) -> bool
Returns whether the given element matches this selector.
fn specificity(&self) -> Specificity
Return the specificity of this selector.