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

Method children

css-inline/src/html/document.rs:387–389  ·  view source on GitHub ↗

Returns an iterator over the direct children of a node.

(&self, node: NodeId)

Source from the content-addressed store, hash-verified

385
386 /// Returns an iterator over the direct children of a node.
387 pub(super) fn children(&self, node: NodeId) -> impl Iterator<Item = NodeId> + '_ {
388 successors(self[node].first_child, |&node| self[node].next_sibling)
389 }
390
391 /// Serialize the document to HTML string.
392 #[allow(clippy::too_many_arguments, clippy::fn_params_excessive_bools)]

Callers 2

serialize_childrenMethod · 0.80
is_emptyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected