I'm trying to create a streaming/lending iterator trait with a for_each method but there are issues with lifetimes when the implementer of the trait isn't 'static (e.g. if it contains a reference with a non 'static lifetime).
Is there any way to make this example work and/or some insight into why it isn't possible?