Skip to main content

format

Function format 

Source
pub fn format(spec: &str, value: &str) -> Option<String>
Expand description

Format value per spec, or None when no formatter is installed, the spec is not one it knows, or the value is not what the spec expects. A caller shows value unchanged then.