File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33## Description
44
5- Trait bounds can become somewhat unwieldy, especially if one of the ` Fn `
6- traits[ ^ fn-traits ] is involved and there are specific requirements on the output
7- type. In such cases the introduction of a new trait may help reduce verbosity,
8- eliminate some type parameters and thus increase expressiveness. Such a trait
9- can be accompanied with a generic ` impl ` for all types satisfying the original
10- bound.
5+ Trait bounds can become somewhat unwieldy, especially if one of the ` Fn ` traits[ ^ fn-traits ]
6+ is involved and there are specific requirements on the output type. In such
7+ cases the introduction of a new trait may help reduce verbosity, eliminate some
8+ type parameters and thus increase expressiveness. Such a trait can be
9+ accompanied with a generic ` impl ` for all types satisfying the original bound.
1110
1211## Example
1312
@@ -114,4 +113,5 @@ not be obvious right away that a simple closure may be used as a `Getter` in the
114113example above.
115114
116115[ ^ fn-traits ] : i.e. ` Fn ` , ` FnOnce ` and ` FnMut `
116+
117117[ ^ read-docs ] : meaning they may need to read more documentation
You can’t perform that action at this time.
0 commit comments