MCPcopy Create free account
hub / github.com/derekbanas/Rust-Tutorial / lunch

Method lunch

mod.rs:20–26  ·  view source on GitHub ↗
(topping: &str)

Source from the content-addressed store, hash-verified

18 // Implement functionality for the Pizza struct
19 impl Pizza {
20 pub fn lunch(topping: &str) -> Pizza {
21 Pizza {
22 dough: String::from("regular dough"),
23 cheese: String::from("mozzarella"),
24 topping: String::from(topping),
25 }
26 }
27 }
28
29 // help_customer is public so functions can call it

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected