The mod.rs file

This file should include an interface to the module itself. The name of the module will point to a file with the same name.

Consider the following example:

mod mycode; 

The preceding line will point to mycode.rs. You will need to include an interface to each file in that module directory (with the exception of mod.rs).

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

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