I also know I can use #[arg(last = true, value_parser = |inp: &str| ... with a function that will be applied on each T in Vec<T>.
But I can't figure out if I can somehow pass the whole collection/iterator to a function. For example if I want to get VecDeque<T> without converting it afterwards from Vec<T>. Is that possible?
Any has 'static as a bound on Self, and is implemented for all T: ?Sized + 'static, so you only need one of + Any or + 'static and the other can be implied.