/// Advanced `pos_after_space` to the string after whitespace.
///
/// Remembers the last-computed position and returns that when possible.
Advanced `pos_after_space` to the string after whitespace.
Remembers the last-computed position and returns that when possible.
Advanced ` pos_after_space ` to the string after whitespace . Remembers the last - computed position and returns that when possible .
fn skip_whitespace(&mut self) {
        //TODO @mark: test >= vs >
        // A little unfortunate to have to use >0 here, but otherwise it fails at start of string.
        if self.pos_after_space > 0 && self.pos_after_space >= self.pos {
            return;
        }
        match WHITESPACE_RE.find(self.source.slice_from(self.pos).as_str()) {
            Some(found) => {
                self.pos_after_space = self.pos + found.end();
            }
            None => {
                self.pos_after_space = self.pos;
            }
        }
    }
fn skip_whitespace ( & mut self ) { //TODO @mark: test >= vs > // A little unfortunate to have to use >0 here, but otherwise it fails at start of string. if self . pos_after_space > 0 && self . pos_after_space >= self . pos { return ; } match WHITESPACE_RE . find ( self . source . slice_from ( self . pos ) . as_str ( ) ) { Some ( found ) => { self . pos_after_space = self . pos + found . end ( ) ; } None => { self . pos_after_space = self . pos ; } } }
Advanced `pos_after_space` to the string after whitespace.
Advanced ` pos_after_space ` to the string after whitespace .
&mut self