-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Function pointers don't seem to be mentioned in the book #26746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We do mention the type, but not that they implement Fn: http://doc.rust-lang.org/book/primitive-types.html#functions |
Note that |
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Aug 5, 2015
1. mention them in the function chapter 2. mention their coercion to closures in the closures chapter Fixes rust-lang#26746
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Aug 5, 2015
1. mention them in the function chapter 2. mention their coercion to closures in the closures chapter Fixes rust-lang#26746
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The fact that function pointers implement the closure traits
Fn
/FnMut
/FnOnce
also doesn't seem to be mentioned in either the book or the reference.The text was updated successfully, but these errors were encountered: