hcl_primitives::ident

Function is_id_start

Source
pub fn is_id_start(ch: char) -> bool
Expand description

Determines if ch is a valid HCL identifier start character.

ยงExample

assert!(is_id_start('_'));
assert!(is_id_start('a'));
assert!(!is_id_start('-'));
assert!(!is_id_start('1'));
assert!(!is_id_start(' '));