|
2 | 2 |
|
3 | 3 | ## Keywords
|
4 | 4 |
|
5 |
| -* `as`: primitive casting. See [Casting Between Types (`as`)]. |
| 5 | +* `as`: primitive casting, or disambiguating the specific trait containing an item. See [Casting Between Types (`as`)], [Universal Function Call Syntax (Angle-bracket Form)], [Associated Types]. |
6 | 6 | * `break`: break out of loop. See [Loops (Ending Iteration Early)].
|
7 | 7 | * `const`: constant items and constant raw pointers. See [`const` and `static`], [Raw Pointers].
|
8 | 8 | * `continue`: continue to next loop iteration. See [Loops (Ending Iteration Early)].
|
|
115 | 115 | * `::path`: path relative to the crate root (*i.e.* an explicitly absolute path). See [Crates and Modules (Re-exporting with `pub use`)].
|
116 | 116 | * `self::path`: path relative to the current module (*i.e.* an explicitly relative path). See [Crates and Modules (Re-exporting with `pub use`)].
|
117 | 117 | * `super::path`: path relative to the parent of the current module. See [Crates and Modules (Re-exporting with `pub use`)].
|
118 |
| -* `type::ident`: associated constants, functions, and types. See [Associated Types]. |
| 118 | +* `type::ident`, `<type as trait>::ident`: associated constants, functions, and types. See [Associated Types]. |
119 | 119 | * `<type>::…`: associated item for a type which cannot be directly named (*e.g.* `<&T>::…`, `<[T]>::…`, *etc.*). See [Associated Types].
|
| 120 | +* `trait::method(…)`: disambiguating a method call by naming the trait which defines it. See [Universal Function Call Syntax]. |
| 121 | +* `type::method(…)`: disambiguating a method call by naming the type for which it's defined. See [Universal Function Call Syntax]. |
| 122 | +* `<type as trait>::method(…)`: disambiguating a method call by naming the trait _and_ type. See [Universal Function Call Syntax (Angle-bracket Form)]. |
120 | 123 |
|
121 | 124 | <!-- Generics -->
|
122 | 125 |
|
|
235 | 238 | [Traits (`where` clause)]: traits.html#where-clause
|
236 | 239 | [Traits (Multiple Trait Bounds)]: traits.html#multiple-trait-bounds
|
237 | 240 | [Traits]: traits.html
|
| 241 | +[Universal Function Call Syntax]: ufcs.html |
| 242 | +[Universal Function Call Syntax (Angle-bracket Form)]: ufcs.html#angle-bracket-form |
238 | 243 | [Unsafe]: unsafe.html
|
239 | 244 | [Unsized Types (`?Sized`)]: unsized-types.html#sized
|
240 | 245 | [Variable Bindings]: variable-bindings.html
|
0 commit comments