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§
fn isidentifier(&self) -> PyResult<bool>
Implementors§
impl<T: AsRef<str>> IsIdentifier for T
Blanket implementation for this trait.