pub fn is_keyword(&self, s: &str) -> bool {
        if let Some(token) = self.cur {
            token.as_ident().map_or(false, |x| x == s)
        } else {
            false
        }
    }
/// Returns true if the current token matches the given keyword.
Returns true if the current token matches the given keyword.
Returns true if the current token matches the given keyword .
pub fn is_keyword(&self, s: &str) -> bool {
        if let Some(token) = self.cur {
            token.as_ident().map_or(false, |x| x == s)
        } else {
            false
        }
    }
pub fn is_keyword ( & self , s : & str ) -> bool { if let Some ( token ) = self . cur { token . as_ident ( ) . map_or ( false , | x | x == s ) } else { false } }
Returns true if the current token matches the given keyword.
Returns true if the current token matches the given keyword .
&self
s
&str
&self
s
&str