Function tor_persist::slug::check_syntax

source ยท
pub fn check_syntax(s: &str) -> Result<(), BadSlug>
Expand description

Check the string s to see if it would be valid as a slug

This is a low-level method for special cases. Usually, use Slug::new etc.