You will learn about the trait feature of Rust in this recipe is similar to impl, which helps the developer make a method call of the user-defined data type. However, trait provides many more features, such as inheritance and control, over the functionality that the user-defined data type provides.