mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-27 06:29:42 +00:00
add practice projects
This commit is contained in:
6
practices/hello-package/src/front_of_house/hosting.rs
Normal file
6
practices/hello-package/src/front_of_house/hosting.rs
Normal file
@ -0,0 +1,6 @@
|
||||
pub fn add_to_waitlist() {}
|
||||
|
||||
pub fn seat_at_table() -> String {
|
||||
String::from("sit down please")
|
||||
}
|
||||
|
2
practices/hello-package/src/front_of_house/mod.rs
Normal file
2
practices/hello-package/src/front_of_house/mod.rs
Normal file
@ -0,0 +1,2 @@
|
||||
pub mod hosting;
|
||||
pub mod serving;
|
9
practices/hello-package/src/front_of_house/serving.rs
Normal file
9
practices/hello-package/src/front_of_house/serving.rs
Normal file
@ -0,0 +1,9 @@
|
||||
pub fn take_order() {}
|
||||
|
||||
pub fn serve_order() {}
|
||||
|
||||
pub fn take_payment() {}
|
||||
|
||||
// Maybe you don't want the guest hearing the your complaining about them
|
||||
// So just make it private
|
||||
fn complain() {}
|
Reference in New Issue
Block a user