Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
30
fn 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
number
Function · 0.70
classify
Function · 0.70
Dog
Class · 0.70
Cat
Class · 0.70
Tested by
no test coverage detected