The use-glob approach

This approach is similar to the use-me approach, with the exception of using {} around what we want the code to have access to (known as a glob):

use my_crate::module_name::{print_me, calculate_time}; 

The line means that the code can access module_name::print_me and module_name::calculate_time but nothing else from the module_name scope.

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

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