MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / add

Method add

debugger/testcases/gen_phantom.rs:22–25  ·  view source on GitHub ↗

add() returns a new `Length` struct containing the sum.

(self, rhs: Length<Unit>)

Source from the content-addressed store, hash-verified

20
21 // add() returns a new `Length` struct containing the sum.
22 fn add(self, rhs: Length<Unit>) -> Length<Unit> {
23 // `+` calls the `Add` implementation for `f64`.
24 Length(self.0 + rhs.0, PhantomData)
25 }
26}
27
28fn main() {

Callers 1

inc_hit_countFunction · 0.80

Calls 1

LengthClass · 0.85

Tested by

no test coverage detected