Skip to main content

sanitized

Function sanitized 

Source
pub fn sanitized(s: &str) -> Option<String>
Expand description

A display-safe copy of s, or None if already safe (the usual case, sparing an allocation).