File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3517,13 +3517,14 @@ more of the closure traits:
3517
3517
3518
3518
* ` FnMut `
3519
3519
: The closure can be called multiple times as mutable. A closure called as
3520
- ` FnMut ` can mutate values from its environment. ` FnMut ` implies
3521
- ` FnOnce ` .
3520
+ ` FnMut ` can mutate values from its environment. ` FnMut ` inherits from
3521
+ ` FnOnce ` (i.e. anything implementing ` FnMut ` also implements ` FnOnce ` ) .
3522
3522
3523
3523
* ` Fn `
3524
3524
: The closure can be called multiple times through a shared reference.
3525
3525
A closure called as ` Fn ` can neither move out from nor mutate values
3526
- from its environment. ` Fn ` implies ` FnMut ` and ` FnOnce ` .
3526
+ from its environment. ` Fn ` inherits from ` FnMut ` , which itself
3527
+ inherits from ` FnOnce ` .
3527
3528
3528
3529
3529
3530
### Trait objects
You can’t perform that action at this time.
0 commit comments