pub fn decode_locale_reply(reply: &str) -> Result<NumberLocale, InputError>Expand description
Decodes and validates a locale script reply without substituting defaults.
- Complexity: O(reply bytes) time and space.
§Errors
Returns Locale for failed resolution, malformed transport, or invalid symbols.
§Examples
use adam_web_ui::components::number::decode_locale_reply;
assert!(decode_locale_reply(r#"{"Err":"unsupported locale"}"#).is_err());