Expand description
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.
Enums§
- File
Error - Errors that might occur when saving a file.
Functions§
- load_
from_ json - A generic funtion for loading a type from a JSON file.
- load_
from_ toml - A generic funtion for loading a type from a TOML file.
- safe_
file_ save - Safely save a file with the given contents, replacing the original if necessary.
- save_
to_ json - A generic function for safely saving a serializable type to a JSON file.
- save_
to_ toml - A generic function for safely saving a serializable type to a TOML file.
- walk_
dir - Attempt to recursively walk the given directory and all its sub-directories.