39
The Hidden Rules Behind Rust Functions & Closures
(blog.cuongle.dev)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
Well, the closure has a type. Just you cannot declare it. That's why you do "impl Fn" instead. Because you know that whatever type the close is, it implements the "Fn" trait.