mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-27 22:34:14 +00:00
reference: improve readability
This commit is contained in:
parent
20cf4cf62c
commit
7abb40c79a
@ -1418,9 +1418,13 @@ impl<T> Container for Vec<T> {
|
||||
```
|
||||
|
||||
Generic functions may use traits as _bounds_ on their type parameters. This
|
||||
will have two effects: only types that have the trait may instantiate the
|
||||
parameter, and within the generic function, the methods of the trait can be
|
||||
called on values that have the parameter's type. For example:
|
||||
will have two effects:
|
||||
|
||||
- Only types that have the trait may instantiate the parameter.
|
||||
- Within the generic function, the methods of the trait can be
|
||||
called on values that have the parameter's type.
|
||||
|
||||
For example:
|
||||
|
||||
```
|
||||
# type Surface = i32;
|
||||
|
Loading…
Reference in New Issue
Block a user