pub fn is_valid_country_code(s: &str) -> boolExpand description
Validates that a string is a valid 2-character country code.
Country codes must be exactly 2 alphabetic characters (case-insensitive).
§Arguments
s- The string to validate
§Returns
true if the string is a valid country code, false otherwise.
§Example
use vanguards_rs::node_selection::is_valid_country_code;
assert!(is_valid_country_code("US"));
assert!(is_valid_country_code("de"));
assert!(!is_valid_country_code("USA")); // Too long
assert!(!is_valid_country_code("U1")); // Contains digit