Trait text_scanner::ext::PythonStrExt
source · pub trait PythonStrExt {
// Required methods
fn is_python_keyword(&self) -> bool;
fn is_python_soft_keyword(&self) -> bool;
fn is_python_operator(&self) -> bool;
fn is_python_delimiter(&self) -> bool;
}Expand description
str extension for checking if a &str is e.g. a Python keyword.