[][src]Function mininip::dump::dump_into_file

pub fn dump_into_file<T: AsRef<Path>>(
    path: T,
    data: HashMap<Identifier, Value>
) -> Result<()>

Dumps a HashMap<Identifier, Value> into a file

Parameters

path the path of the file (must be closed)

data the data to dump

Return value

Since any Dumper operation is infallible, it only returns an io::Result<()> which indicates a file manipulation error