Trait IsIdentifier

Source
pub trait IsIdentifier: AsRef<str> {
    // Provided method
    fn isidentifier(&self) -> PyResult<bool> { ... }
}
Expand description

Trait that determines if a string contains a valid identifer based on Python rules (which are broadly simiilar to Rust).

Provided Methods§

Implementors§

Source§

impl<T: AsRef<str>> IsIdentifier for T

Blanket implementation for this trait.