This is as direct as possible a translation of the ancestor.missingancestors
Python class in pure Rust. The goal for this changeset is to make it easy
to compare with the Python version.
We also add to Python tests the cases that helped us develop and debug
this implementation.
Some possible optimizations are marked along the way as TODO comments
Why not just write:
It is much clearer what you mean and I suspect the performance is very similar. See the below example. If you want the performance then I prefer c which is even a bit faster looking.
https://rust.godbolt.org/z/-JJ61P