fn pop(&mut self, iter: &SourceIter<'_>, expected: LexerMode) -> Result<(), ParseError> {
        let actual = self.modes.pop().unwrap_or_default();

        if actual != expected {
            return Err(ParseError::new(
                iter.point_span(),
                ParseErrorKind::BadLexerMode { actual, expected },
            ));
        }

        Ok(())
    }
/// Pop the expected lexer mode.
Pop the expected lexer mode.
Pop the expected lexer mode .
fn pop(&mut self, iter: &SourceIter<'_>, expected: LexerMode) -> Result<(), ParseError> {
        let actual = self.modes.pop().unwrap_or_default();
        if actual != expected {
            return Err(ParseError::new(
                iter.point_span(),
                ParseErrorKind::BadLexerMode { actual, expected },
            ));
        }
        Ok(())
    }
fn pop ( & mut self , iter : & SourceIter < ' _ > , expected : LexerMode ) -> Result < ( ) , ParseError > { let actual = self . modes . pop ( ) . unwrap_or_default ( ) ; if actual != expected { return Err ( ParseError :: new ( iter . point_span ( ) , ParseErrorKind :: BadLexerMode { actual , expected } , ) ) ; } Ok ( ( ) ) }
Pop the expected lexer mode.
Pop the expected lexer mode .
&mut self
iter
&SourceIter<'_>
expected
LexerMode
&mut self
iter
&SourceIter<'_>
expected
LexerMode