Skip to main content

is_valid_label

Function is_valid_label 

Source
pub fn is_valid_label(s: &str) -> bool
Expand description

Labels must look like identifiers: start with a letter, contain only letters/digits/dashes/underscores. This keeps them distinguishable from t<N> ids at a glance and safe to pass through shells without quoting.