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

Method group_siblings

crates/css_feature_data/src/css_feature.rs:83–88  ·  view source on GitHub ↗

Get all CSS properties in the same groups as this one

(&self)

Source from the content-addressed store, hash-verified

81
82 /// Get all CSS properties in the same groups as this one
83 pub fn group_siblings(&self) -> impl Iterator<Item = &'static CSSFeature> {
84 self.groups
85 .iter()
86 .filter_map(|f| GROUPS.get(f).map(|names| names.iter().filter_map(|name| Self::by_feature_name(name))))
87 .flatten()
88 }
89
90 /// Get all CSS properties in the same specification as this one
91 pub fn spec_siblings(&self) -> impl Iterator<Item = &'static CSSFeature> {

Callers

nothing calls this directly

Calls 3

by_feature_nameFunction · 0.85
iterMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected