I have this code in Rust:
for ch in string.chars() {
if ch == 't' {
// skip forward 5 places in the string
}
}
In C, I believe you can just do this:
for (int i = 0; i < strlen(string); ++i) {
if (string[i] == 't') {
i += 4;
continue;
}
}
How would you implement this in Rust? Thanks.