Skip to main content

walk

Function walk 

Source
pub fn walk<'a>(
    blocks: &'a [GutenbergBlock],
    visit: &mut dyn FnMut(&'a GutenbergBlock, &[usize]),
)
Expand description

Depth-first, pre-order visit of every block with its index path ([2, 0] is the first child of the third top-level block).