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

Method is_empty

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

Source from the content-addressed store, hash-verified

225 /// Returns true if this metadata is empty (contains no properties or at-rules)
226 #[inline]
227 pub fn is_empty(&self) -> bool {
228 self.property_groups == PropertyGroup::none()
229 && self.applies_to == AppliesTo::none()
230 && self.box_sides == BoxSide::none()
231 && self.box_portions == BoxPortion::none()
232 && self.declaration_kinds == DeclarationKind::none()
233 && self.used_at_rules == AtRuleId::none()
234 && self.vendor_prefixes == VendorPrefixes::none()
235 && self.node_kinds == NodeKinds::none()
236 && self.property_kinds == PropertyKind::none()
237 && self.unitless_zero_resolves == UnitlessZeroResolves::Length
238 && self.size == 0
239 }
240
241 /// Returns true if this block modifies any positioning-related properties.
242 #[inline]

Callers 5

mainFunction · 0.45
validate_balancedMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
popular_snapshotsFunction · 0.45

Calls

no outgoing calls

Tested by 2

validate_balancedMethod · 0.36
popular_snapshotsFunction · 0.36