pub fn is_valid(s: &str) -> boolExpand description
Validate a hex string for dodecet encoding
Returns true if the string is valid for decoding.
ยงExample
use dodecet_encoder::hex;
assert!(hex::is_valid("123456"));
assert!(!hex::is_valid("12345")); // Not multiple of 3
assert!(!hex::is_valid("GHI")); // Non-hex characters