(&self)
| 18 | |
| 19 | impl Tutorial { |
| 20 | pub fn progress(&self) -> usize { |
| 21 | for (idx, item) in Tutorial::iter().enumerate() { |
| 22 | if *self == item { |
| 23 | return idx; |
| 24 | } |
| 25 | } |
| 26 | unreachable!() |
| 27 | } |
| 28 | |
| 29 | pub fn next(&mut self) { |
| 30 | let n = self.progress() + 1; |
no outgoing calls
no test coverage detected