Skip to main content

slug

Function slug 

Source
pub fn slug(model: &str) -> String
Expand description

Sanitize a model label into a filesystem-safe slug for the results filename: keep [A-Za-z0-9._-], replace every other char with -, collapse runs of -, trim leading/trailing -, and fall back to "model" if nothing is left.