pub struct Walker<'a> { /* private fields */ }Expand description
Pre-order DFS over doc.children. At every node, every sink’s
enter fires (in slice order); the walker then recurses into the
node’s children; finally every sink’s leave fires (in reverse
slice order, LIFO).
Document itself is not surfaced as a Node::Document event; the
walker iterates doc.children directly. Sinks needing a document
boundary subscribe to Frontmatter or to their first node.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Walker<'a>
impl<'a> RefUnwindSafe for Walker<'a>
impl<'a> Send for Walker<'a>
impl<'a> Sync for Walker<'a>
impl<'a> Unpin for Walker<'a>
impl<'a> UnsafeUnpin for Walker<'a>
impl<'a> UnwindSafe for Walker<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more