Skip to main content

Module structural_walk

Module structural_walk 

Source
Expand description

Observer callbacks and adapters for structural walking.

Callbacks report failures with Result and must not panic. A panic reaching the non-unwinding native callback boundary aborts the process.

Enums§

WalkOrder
Callback order for structural_walk.
WalkResult
What a callback asks the Rust walker to do with the current value.

Traits§

IntoWalkResult
The result of a walk callback: a WalkResult, or a Result<WalkResult> for a callback that uses ?.

Functions§

structural_walk
Walk root with an observer, calling it on every reachable value in order.