• モジュールを書いていたファイルが大きくなってきた場合サブモジュールを作って機能を分割する
  • module_b.rsmodule_c.rs, module_d.rsに分割したとすると、module_b.rsに2つのモジュールを宣言する
mod module_c;
mod module_d;