Function validate_extension

Source
fn validate_extension(extension: &OsStr)
Expand description

Checks whether the string is valid as a file extension, or panics otherwise.