Bringing Paths into Scope with the `use` Keyword
In the previous article, we learned how to organize our code into modules. While this is great for organization, it can lead to long paths when we want to use an item from another module.
In the previous article, we learned how to organize our code into modules. While this is great for organization, it can lead to long paths when we want to use an item from another module.
As your programs grow larger, it becomes important to organize your code to keep it manageable. Rust provides a powerful module system for this purpose. In this article, we'll explore how to group code into modules and how to bring items into scope with the use keyword.