Hi, suppose I have the following code:
fn foo() -> impl Iterator<Item=i32> {
let closure = 42;
vec![1, 2, 3].into_iter().map(move |v| v + closure)
}
type FooReturnType = ...
I would like to use the return type of foo elsewhere but can't type it out manually because of the Map / closure. Ideally I would like to be able to reference the exact type foo returns through a nice name like FooReturnType, is there a way to do this?