MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / is_empty

Method is_empty

css-inline/src/html/element.rs:274–282  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

272
273 #[inline]
274 fn is_empty(&self) -> bool {
275 self.document
276 .children(self.node_id)
277 .all(|child| match &self.document[child].data {
278 NodeData::Element { .. } => false,
279 NodeData::Text { text } => text.is_empty(),
280 _ => true,
281 })
282 }
283
284 #[inline]
285 fn is_root(&self) -> bool {

Callers 12

combine_extra_cssFunction · 0.80
mainFunction · 0.80
pushMethod · 0.80
apply_selector_cleanupFunction · 0.80
rewrite_style_blocksFunction · 0.80
inline_to_implMethod · 0.80
index_by_idMethod · 0.80
create_elementMethod · 0.80
serializeMethod · 0.80
newMethod · 0.80
attr_matchesMethod · 0.80
has_classMethod · 0.80

Calls 1

childrenMethod · 0.80

Tested by

no test coverage detected