MCPcopy Create free account
hub / github.com/JoshuaPostel/texaform / progress

Method progress

src/surface/tutorial.rs:20–27  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

18
19impl 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;

Callers 3

nextMethod · 0.45
previousMethod · 0.45
progress_current_techMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected