Skip to main content

child_span

Function child_span 

Source
pub fn child_span(d: &Digested) -> Option<Locator>
Expand description

A child’s located span: its own get_locator() if set, else — under token-locators — recovered from the per-token origin handles still riding its reverted tokens. (Origins survive revert/re-digest; get_locator merely fails to aggregate undigested/composite content — §3.1.3.) Off the feature, only get_locator is consulted (byte-identical behavior).

pub so out-of-band construction paths that open an element around already-digested content — e.g. insert_frontmatter building <ltx:title> from the stored, deferred \title{…} boxes — can recover the same span and feed it to Document::set_current_box_locator.