you are viewing a single comment's thread
view the rest of the comments
[–] 7 points 1 year ago* (last edited 1 year ago)

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.

  • source
  • parent