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

Method has_rules

crates/css_ast/src/metadata.rs:301–303  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

299 /// Returns true if metadata contains any rule nodes.
300 #[inline]
301 pub fn has_rules(&self) -> bool {
302 self.node_kinds.intersects(NodeKinds::StyleRule | NodeKinds::AtRule)
303 }
304
305 /// Returns true if metadata contains style rules.
306 #[inline]

Callers 4

self_metadataMethod · 0.80
self_metadataMethod · 0.80
can_matchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected