std-method

char::is_alphabetic

Test the Unicode alphabetic property, useful for broad classification but not enough to validate a person’s name or a language. Expected stdout (not executed): true false Common mistake: Rejecting spaces or combining marks in names based only on this method.

Formal Syntax & Structure

rust syntaxrust
fn is_alphabetic(self) -> bool

Working Example

Example Snippetrust
fn main() {    println!("{} {}", 'م'.is_alphabetic(), '5'.is_alphabetic());}
Rust Reference