pub struct WalkCtx<'a> {
pub depth: usize,
pub index: usize,
pub parent: Option<&'a Node>,
}Expand description
Position info handed to every sink callback. Read-only.
Fields§
§depth: usizeAncestor count above this node. Top-level children = 0.
index: usizeIndex among parent’s children. 0-based.
parent: Option<&'a Node>None when visiting a top-level child of the document.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WalkCtx<'a>
impl<'a> RefUnwindSafe for WalkCtx<'a>
impl<'a> Send for WalkCtx<'a>
impl<'a> Sync for WalkCtx<'a>
impl<'a> Unpin for WalkCtx<'a>
impl<'a> UnsafeUnpin for WalkCtx<'a>
impl<'a> UnwindSafe for WalkCtx<'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