November 2017
Beginner
308 pages
8h 32m
English
In order to break our current lib.rs file down, we are going to have to change how we declare modules.
Currently, we have this:
mod Trigonometry // top level module
{
mod Natural // sub module
{
}
mod Arc // sub module
{
}
}
To break this into separate files, we need to declare only the top-level modules in lib.rs:
mod Trigonometry; mod RegressionAnalysis; mod Conversions; mod Bases;
Read now
Unlock full access