Skip to main content

is_legal_name

Function is_legal_name 

Source
pub fn is_legal_name(name: &str) -> bool
Expand description

Is name a legal Bynk identifier — a single, dotless Ident? Answered by the real lexer rather than a hand-rolled regex, so it tracks the language exactly: a dash, dot, leading digit, or reserved keyword all yield something other than one lone Ident token and are rejected.