// Returns an iterator over all nodes in the given LDD. Visits each node only if the predicate holds.
let (value, down, right) = current.node().expect("only inner nodes are pushed onto the stack");
let (value, down, _) = current.node().expect("only inner nodes are pushed onto the stack");
let (_, _, right) = current.node().expect("only inner nodes are pushed onto the stack");