An extension of the
std::io module. Includes functions for safely saving and loading files
from any serializable types, along with functions specifically for working with JSON and TOML.
Errors that might occur when saving a file.
A generic funtion for loading a type from a JSON file.
A generic funtion for loading a type from a TOML file.
Saves the file to a temporary file before removing the original to reduce the chance of losing data in the case that something goes wrong during saving.
A generic function for safely saving a serializable type to a JSON file.
A generic function for safely saving a serializable type to a TOML file.
Attempt to recursively walk the given directory and all its sub-directories.