pub fn is_alpha(input: &str) -> boolExpand description
Checks if the input string contains only alphabetic characters.
§Arguments
input- A string slice that holds the string to be checked.
§Returns
trueif the input string contains only alphabetic characters and is not empty.falseotherwise.
§Examples
use rust_string_utils::utils::number::is_alpha;
assert_eq!(is_alpha("abc"), true);
assert_eq!(is_alpha("ab2c"), false);
assert_eq!(is_alpha(""), false);