sanitise_file_name

Function sanitise

Source
pub fn sanitise(s: &str) -> String
Available on crate feature alloc only.
Expand description

Sanitise a file name with the default options. See Options for a description of what all the options do.

The return value should be suitable as a file name, and will not be empty (if it would be empty, it’ll be _ instead, per Options::six_measures_of_barley’s default).