Skip to main content

validate_identifier

Function validate_identifier 

Source
pub fn validate_identifier(input: &str) -> Result<(), IdentifierError>
Expand description

Validates that an identifier is non-empty and contains only supported ASCII characters.

ยงErrors

Returns IdentifierError::Empty when the input is empty and IdentifierError::InvalidCharacter when it contains unsupported characters.