logo
pub fn validate_format_string(s: impl AsRef<str>) -> Result<(), String>
Expand description

Checks if a user-provided formatting string is valid. If it isn’t, a description of the error is returned.