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

Class Pizza

mod.rs:12–16  ·  view source on GitHub ↗

To access the struct and the part to make public must both use pub

Source from the content-addressed store, hash-verified

10
11 // To access the struct and the part to make public must both use pub
12 pub struct Pizza {
13 pub dough: String,
14 pub cheese: String,
15 pub topping: String,
16 }
17
18 // Implement functionality for the Pizza struct
19 impl Pizza {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected