Rust

General Notes

On the usage of impl Trait

impl Trait is not intended as a replacement for dynamic dispatch (dyn Trait).

It only allows to write a placeholder for some types that are unrepresentable, like closures and iterators.