[][src]Function libpijul::fs::iter_paths

pub fn iter_paths<T: TxnT, F: FnMut(&mut dyn Iterator<Item = Position<ChangeId>>) -> bool>(
    txn: &T,
    channel: &ChannelRef<T>,
    key: Position<ChangeId>,
    f: F
)

Traverse the paths in the graph to a key. Warning: there might be a number of paths exponential in the number of conflicts.

This function takes a closure f, which gets called on each path with an iterator over the keys from the root to key. This function stops when f returns false (or when all the paths have been traversed).

See also iter_basenames.