I have a Rust playground of a reduced example, showing what I want to do:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=58fbaffc5b8e0743cd315b3e24f20f81
Basically: how do I implement IntoIterator correctly for a Newtype(Cow<[T]>)?
A browser interface to the Rust compiler to experiment with the language