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

Function main

07_structs/rust/defaults.rs:25–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25fn main() {
26 let d1 = D::new(1, 2, None);
27 let d2 = D {
28 x: 1,
29 y: 2,
30 ..D::default()
31 };
32 println!("{:?}", d1);
33 println!("{:?}", d2);
34}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected