pub(crate) fn validate_name(
    name: &str,
    what: &'static str
) -> Result<(), NameValidationError>