Function write_svg

Source
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 the InputOutput struct containing the input/output paths.
  • svg - A reference to the SvgFile that 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.