Accessing modules

In this recipe, we will use the self and super keywords in Rust to provide better access to the module's units and learn about the scope of Rust units. In this recipe, we will create various module units across the code with similar names, to create ambiguity in the unit name. We will check out how the self and super keywords help the developer overcome these problems.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.60.62