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