Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/csskit/csskit
/ has_style_rules
Method
has_style_rules
crates/css_ast/src/metadata.rs:307–309 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
305
/// Returns true if metadata contains style rules.
306
#[inline]
307
pub fn has_style_rules(&self) -> bool {
308
self.node_kinds.contains(NodeKinds::StyleRule)
309
}
310
311
/// Returns true if metadata contains at-rules.
312
#[inline]
Callers
nothing calls this directly
Calls
1
contains
Method · 0.45
Tested by
no test coverage detected