• calcopiritus@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    10 days 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.