Function time::util::validate_format_string [−][src]
pub fn validate_format_string(s: impl AsRef<str>) -> Result<(), String>
Checks if a user-provided formatting string is valid. If it isn’t, a description of the error is returned.