fn path_id(
slots: &PathSlotResolver,
nodes: impl IntoIterator<Item = OffchainPublicKey>,
) -> Option<PathId>Expand description
Builds the [PathId] of a leg from the nodes it visits.
Returns None if any node is unknown to the graph or the leg is longer than a [PathId] can
hold – in both cases the id would name edges the round-trip did not use, which is worse than
reporting nothing.