Rayon: Apply par_iter after a take_while

However I understand that Rayon only works on an arraylike type (ie. it cant work on an iterator)

It actually can work on iterators using par_bridge. Here's an example of doing that: