]> git.lizzy.rs Git - rust.git/blobdiff - src/doc/trpl/traits.md
book: define trait
[rust.git] / src / doc / trpl / traits.md
index 2ef9e7ca22e60a655b30ea6b037855f09c5d6889..6d31b230749af028a9d11e4aa4e325224aa2190e 100644 (file)
@@ -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]?