Function adapt

Source
pub fn adapt(component: &str) -> Option<String>
Expand description

A component made acceptable, or left exactly as it was.

Returns None when nothing had to change, which is what lets the caller report only the names it actually touched.