MCPcopy Create free account
hub / github.com/csskit/csskit / property_kind

Method property_kind

crates/csskit_ast/src/selector/query.rs:440–443  ·  view source on GitHub ↗

Returns the attribute name atom.

(&self)

Source from the content-addressed store, hash-verified

438impl QueryAttribute {
439 /// Returns the attribute name atom.
440 pub fn property_kind(&self) -> Option<PropertyKind> {
441 let c: Cursor = self.attr_name.into();
442 CsskitAtomSet::from_bits(c.atom_bits()).to_property_kind()
443 }
444
445 /// Returns the attribute operator, or None for presence-only selectors like `[name]`.
446 pub fn operator(&self) -> Option<&AttributeOperator> {

Callers 1

matches_attributeMethod · 0.80

Calls 2

to_property_kindMethod · 0.80
atom_bitsMethod · 0.45

Tested by

no test coverage detected