(&self, frame: &mut Frame)
| 17 | |
| 18 | impl Drawable for Score { |
| 19 | fn draw(&self, frame: &mut Frame) { |
| 20 | // format our score string |
| 21 | let formatted = format!("SCORE: {:0>4}", self.count); |
| 22 | |
| 23 | // iterate over all characters |
| 24 | for (i, c) in formatted.chars().enumerate() { |
| 25 | // put them in the first row |
| 26 | frame[i][0] = c; |
| 27 | } |
| 28 | } |
| 29 | } |
nothing calls this directly
no outgoing calls
no test coverage detected