From e2a1afa1c2f39969b025efe684f4ac7c0070b807 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Tue, 9 Jun 2015 02:32:29 +0200 Subject: [PATCH] book: define trait --- src/doc/trpl/traits.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/doc/trpl/traits.md b/src/doc/trpl/traits.md index 2ef9e7ca22e6..6d31b230749a 100644 --- a/src/doc/trpl/traits.md +++ b/src/doc/trpl/traits.md @@ -1,5 +1,8 @@ % Traits +A trait is a language feature that tells the Rust compiler about +functionality a type must provide. + Do you remember the `impl` keyword, used to call a function with [method syntax][methodsyntax]?