Function is_iso_code

Source
pub fn is_iso_code(value: &str) -> bool
Expand description

Tests if value is a valid 3-char iso code.

§Examples

§Basic usage

use xrpl::utils::is_iso_code;

let value: &str = "USD";

assert!(is_iso_code(value));