Skip to main content

PythonStrExt

Trait 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.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PythonStrExt for str

Implementors§