(&self)
| 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 { |
no test coverage detected