Struct kuchiki::Selector
[−]
[src]
pub struct Selector(_);
A pre-compiled CSS Selector.
Methods
impl Selector
[src]
pub fn matches(&self, element: &NodeDataRef<ElementData>) -> bool
[src]
Returns whether the given element matches this selector.
pub fn specificity(&self) -> Specificity
[src]
Return the specificity of this selector.
Trait Implementations
impl Display for Selector
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more