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

Function main

0c_operator_overloading/rust/operator_overloading.rs:55–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55fn main() {
56 let ms = MyString("Foo".to_string());
57 println!("Foo + Bar = {}", ms + "Bar".to_string());
58 println!("Foo + -12 = {}", ms + -12_i32);
59 println!("100 + Foo = {}", 100_i32 + ms.clone());
60 println!("Foo * -12 = {}", ms.clone() * -12_i32);
61 println!("Foo * 12 = {}", ms.clone() * 12_i32);
62}

Callers

nothing calls this directly

Calls 1

MyStringClass · 0.85

Tested by

no test coverage detected