MCPcopy Create free account
hub / github.com/Apress/beginning-rust-2e / Complex

Class Complex

Source Code/20-08.rs:4–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22.3 + 6.5i*/
3mod complex {
4 pub struct Complex {
5 pub re: f64,
6 pub im: f64,
7 }
8 impl std::ops::Add for Complex {
9 type Output = Self;
10 fn add(self, rhs: Self) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected