Function spectrusty_formats::sna::save_sna
source · pub fn save_sna<C: SnapshotCreator, W: Write>(
snapshot: &C,
wr: W
) -> Result<SnapshotResult>
Expand description
Saves an SNA file into wr
from the provided reference to a snapshot
struct
implementing SnapshotCreator.
Errors
This function may return an error from attempts to write the file or if for some reason a snapshot could not be created.