aolifu_rust/
lib.rs

1extern crate core;
2
3mod front_of_house {
4    pub mod hosting {
5        pub fn add_to_waitlist(){}
6        fn seat_at_table(){}
7    }
8
9    mod serving {
10        fn take_order(){}
11        fn serve_order(){}
12        fn take_payment(){
13            super::hosting::add_to_waitlist();
14        }
15    }
16}
17
18pub fn eat_at_restaurant() {
19    front_of_house::hosting::add_to_waitlist();
20}
21
22pub mod collection;
23
24pub mod string;
25
26pub mod panic;
27
28pub mod guess_number;
29
30pub mod function;
31
32pub mod generic;
33
34pub mod trait_mod;
35
36pub mod lifecycle;
37
38#[cfg(test)]
39pub mod test;
40
41pub mod command;
42
43pub mod closure;
44
45pub mod iterator;
46
47pub use self::collection::vector::test_vector;