Skip to main content

Module naming

Module naming 

Source
Expand description

File-naming helpers that need neither a filesystem nor a random id. File-naming helpers every save path shares.

Reading an extension and appending one when a name lacks it are pure string operations, so they are compiled on every target — unlike the saves that write a file, which need a filesystem and a random id.

Re-exports§

use std::path::Path; 🔒

Functions§

extension_of
The extension file_name carries, unless it is empty.
with_extension
file_name with extension appended when it carries none, or None when there is no file name to extend.