food_Library/
lib.rs

1 pub mod dealy_meal {
2    pub mod breakfast {
3        pub fn func1() { 
4            println!("This is function # 1 which belonges to Breakfast", );
5        } }
6
7   pub mod lunch { 
8        pub fn func2(){
9            println!("This is function # 2 which belonges to Lunch", );
10        } }
11   pub mod dinner {
12        pub fn func3() {
13            println!("This is function # 3 which belonges to Dinner", );
14    } }
15}