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

Enum Animals

06_pattern_matching/rust/pattern_matching.rs:9–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7}
8
9enum Animals {
10 Dog(Dog),
11 Cat(Cat),
12}
13
14fn classify(animal: Animals) {
15 match animal {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected