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.
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".