In many languages closures are implemented using a structure in combination with a standard associated function (with a fixed name) which provides a method of making the object "callable".
This is more commonly known as a functor.
For example in C++ typically the compiler will do something along the lines of creating a functor from a lambda expression. There's an example of this in one of the answers here.
Does Rust do something similar? Are closures just syntatic sugar for some kind of functor struct?
the referenceanswer your question?structthat contains the closure's state, and which implements at leastFnOnceso that it's callable (in Rust, there are specifics aroundFnOnce,FnMutandFnwhich "callable", as in other languages, does not convey). As far as this, the answer to your - broad - question is "Yes, its very similar".structand I cannot find the text you cited there