┌───────────────────────────────────────────────────┐ ┌───────────────────────────┐ │lib mod wants to use add_to_wait_list() │ │lib mod needs │ ├───────────────────────────────────────────────────┤ ├───────────────────────────┤ ┌────────┐ │the scope of the lib │ │front_of_house mod with │ │./lib.rs│ │by using **use** __crate::front_of_house::hosting__│ │private access │--├────────┤---│then //hosting::add_to_wait_list()// will be │ │**mod** __front_of_house__;│ └────────┘ │accessible within the lib.rs │ │ │ │ │ └───────────────────────────┘ └───────────────────────────────────────────────────┘ |┌────────────────────────────┐ |│front_of_house mod needs │ |├────────────────────────────┤ ┌───────────────────┐ |│hosting mod as publicly │ │./front_of_house.rs│ |│accessible │---├───────────────────┤ |│**pub** **mod** __hosting__;│ └───────────────────┘ |│ │ |└────────────────────────────┘ ┌───────────────────────────┐ │./front_of_house/hosting.rs│ ├───────────────────────────┤ └───────────────────────────┘