pub fn write_svg(io: &InputOutput, svg: &SvgFile) -> Result<()>Expand description
Writes an SVG file to the specified output path.
This function takes an SVG file and writes it to the specified output path on disk.
§Arguments
io- A reference to theInputOutputstruct containing the input/output paths.svg- A reference to theSvgFilethat will be written to disk.
§Returns
Result<()>- An empty result if the operation is successful, or an error if the writing fails.
§Errors
This function will return an error if the file writing operation fails.