cargo_util_schemas::restricted_names

Function validate_name

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