pub fn format(input: &str) -> Option<String>Expand description
Formats an IBAN with spaces every 4 characters (grouped display).
§Arguments
input- A string containing the IBAN.
§Returns
Returns Some with grouped IBAN if valid, None otherwise.
§Examples
use ec_validator::iban;
let formatted = iban::format("EC8912345678901234567890");
// Returns Some("EC89 1234 5678 9012 3456 7890") or None depending on validity