MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / main

Function main

06_pattern_matching/rust/pattern_matching.rs:30–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30fn main() {
31 for x in 0..6 { number(x) }
32 classify(Animals::Dog(Dog {
33 name: "Fido".to_string(),
34 }));
35 classify(Animals::Cat(Cat { age: 3 }));
36}

Callers

nothing calls this directly

Calls 4

numberFunction · 0.70
classifyFunction · 0.70
DogClass · 0.70
CatClass · 0.70

Tested by

no test coverage detected