Skip to content

Commit a1bf759

Browse files
committed
Added brief discussion of static trait methods.
Closes #3339
1 parent 57c203e commit a1bf759

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/rust.md

+3
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,9 @@ Values with a trait type can have [methods called](#method-call-expressions) on
11751175
for any method in the trait,
11761176
and can be used to instantiate type parameters that are bounded by the trait.
11771177

1178+
Trait methods may be static. Currently implementations of static methods behave like
1179+
functions declared in the implentation's module.
1180+
11781181
### Implementations
11791182

11801183
An _implementation_ is an item that implements a [trait](#traits) for a specific type.

0 commit comments

Comments
 (0)