The use-me approach

Here, we tell the compiler that we are only allowing the current scope to use a specific function from within the module_name scope:

use my_crate::module_name::print_me; 
..................Content has been hidden....................

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