Skip to content

Commit e2a1afa

Browse files
committed
book: define trait
1 parent 20cf4cf commit e2a1afa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/doc/trpl/traits.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
% Traits
22

3+
A trait is a language feature that tells the Rust compiler about
4+
functionality a type must provide.
5+
36
Do you remember the `impl` keyword, used to call a function with [method
47
syntax][methodsyntax]?
58

0 commit comments

Comments
 (0)