fn accept_run(&mut self, valid: &str) -> bool {
        let old_pos = self.pos;
        while let Some(ch) = self.peek() {
            if valid.contains(ch) {
                // consume the character
                self.next();
            } else {
                break;
            }
        }
        old_pos < self.pos
    }
/// `accept_run` consumes a run of runes from the valid set.
`accept_run` consumes a run of runes from the valid set.
` accept_run ` consumes a run of runes from the valid set .
fn accept_run(&mut self, valid: &str) -> bool {
        let old_pos = self.pos;
        while let Some(ch) = self.peek() {
            if valid.contains(ch) {
                // consume the character
                self.next();
            } else {
                break;
            }
        }
        old_pos < self.pos
    }
fn accept_run ( & mut self , valid : & str ) -> bool { let old_pos = self . pos ; while let Some ( ch ) = self . peek ( ) { if valid . contains ( ch ) { // consume the character self . next ( ) ; } else { break ; } } old_pos < self . pos }
`accept_run` consumes a run of runes from the valid set.
` accept_run ` consumes a run of runes from the valid set .
&mut self
valid
&str