cargo_util_schemas::restricted_names

Function validate_name

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