Skip to main content

text_content_len

Function text_content_len 

Source
pub fn text_content_len(doc: &BaseDocument, node: NodeId) -> Result<usize>
Expand description

The byte length of node.textContent, without building it.

One traversal, no allocation. Useful on its own for sizing a buffer, and it is the first half of text_content_into.