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

   pub mod lunch { 
        pub fn func2(){
            println!("This is function # 2 which belonges to Lunch", );
        } }
   pub mod dinner {
        pub fn func3() {
            println!("This is function # 3 which belonges to Dinner", );
    } }
}