Nested Modules

This lesson will get you acquainted with the nested modules in Rust!

Sometimes, the logical partitioning of modules is required. For instance, there is a book with a chapter x, a lesson y, and a heading z. How can the logical partitioning be done? This is where the nested module comes into play!

What Are Nested Modules?

A nested module is a module within a module.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy