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