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

Method add

0b_traits/rust/defaults.rs:22–28  ·  view source on GitHub ↗
(self, other: D)

Source from the content-addressed store, hash-verified

20 type Output = D;
21
22 fn add(self, other: D) -> D {
23 D {
24 x: self.x + other.x,
25 y: self.y + other.y,
26 z: self.z + other.z,
27 }
28 }
29}
30
31fn main() {

Callers 3

__repr__Method · 0.45
takeMethod · 0.45
dropMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected