Skip to content

reference: explain what "implies" means in Closure types section #26793

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

Closed
tshepang opened this issue Jul 5, 2015 · 3 comments
Closed

reference: explain what "implies" means in Closure types section #26793

tshepang opened this issue Jul 5, 2015 · 3 comments

Comments

@tshepang
Copy link
Member

tshepang commented Jul 5, 2015

There are these 2 statements in 8.1.10:

FnMut implies FnOnce
Fn implies FnMut and FnOnce

Is the word implies used correctly? What does it mean?

@steveklabnik
Copy link
Member

It means that if you implement FnMut, you've also implemented FnOnce. It's a trait inheritance hierarchy.

@tshepang
Copy link
Member Author

tshepang commented Jul 5, 2015

I was hoping a PR would close this issue @steveklabnik

@tshepang
Copy link
Member Author

tshepang commented Jul 5, 2015

here goes: #26808

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants