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 @@ -3529,13 +3529,14 @@ more of the closure traits:
3529
3529
3530
3530
* ` FnMut `
3531
3531
: The closure can be called multiple times as mutable. A closure called as
3532
- ` FnMut ` can mutate values from its environment. ` FnMut ` implies
3533
- ` FnOnce ` .
3532
+ ` FnMut ` can mutate values from its environment. ` FnMut ` inherits from
3533
+ ` FnOnce ` (i.e. anything implementing ` FnMut ` also implements ` FnOnce ` ) .
3534
3534
3535
3535
* ` Fn `
3536
3536
: The closure can be called multiple times through a shared reference.
3537
3537
A closure called as ` Fn ` can neither move out from nor mutate values
3538
- from its environment. ` Fn ` implies ` FnMut ` and ` FnOnce ` .
3538
+ from its environment. ` Fn ` inherits from ` FnMut ` , which itself
3539
+ inherits from ` FnOnce ` .
3539
3540
3540
3541
3541
3542
### Trait objects
You can’t perform that action at this time.
0 commit comments