Skip to content

Commit 638555e

Browse files
committed
book: cover UFCS in Syntax Index
1 parent 5d6e8fc commit 638555e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/doc/book/syntax-index.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Keywords
44

5-
* `as`: primitive casting. See [Casting Between Types (`as`)].
5+
* `as`: primitive casting, or part of UFCS. See [Casting Between Types (`as`)], [Universal Function Call Syntax (Angle-bracket Form)].
66
* `break`: break out of loop. See [Loops (Ending Iteration Early)].
77
* `const`: constant items and constant raw pointers. See [`const` and `static`], [Raw Pointers].
88
* `continue`: continue to next loop iteration. See [Loops (Ending Iteration Early)].
@@ -117,6 +117,9 @@
117117
* `super::path`: path relative to the parent of the current module. See [Crates and Modules (Re-exporting with `pub use`)].
118118
* `type::ident`: associated constants, functions, and types. See [Associated Types].
119119
* `<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)].
120123

121124
<!-- Generics -->
122125

@@ -234,6 +237,8 @@
234237
[Traits (`where` clause)]: traits.html#where-clause
235238
[Traits (Multiple Trait Bounds)]: traits.html#multiple-trait-bounds
236239
[Traits]: traits.html
240+
[Universal Function Call Syntax]: ufcs.html
241+
[Universal Function Call Syntax (Angle-bracket Form)]: ufcs.html#angle-bracket-form
237242
[Unsafe]: unsafe.html
238243
[Unsized Types (`?Sized`)]: unsized-types.html#sized
239244
[Variable Bindings]: variable-bindings.html

0 commit comments

Comments
 (0)