is_valid_name

Function is_valid_name 

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

Checks if the provided name is valid.

The name must:

  • Be non-empty.
  • Consist solely of lower-case alphabetic characters, with _’ used as an optional separator.
  • Not start or end with a ‘_’.