self allows us to refer to parameters for this struct
(&self)
| 704 | |
| 705 | // self allows us to refer to parameters for this struct |
| 706 | fn area(&self) -> f32{ |
| 707 | return self.length * self.width; |
| 708 | } |
| 709 | } |
| 710 | |
| 711 | // Implement the trait for circle |
nothing calls this directly
no outgoing calls
no test coverage detected