pub fn save_svg(filepath: &str, svg: &str) -> Result<(), BadgeError>
Expand description
A convenience function to save an SVG to a file.
Errors
This will return BadgeError::CannotSaveToFile if the directory is malformed or cannot be accessed.
pub fn save_svg(filepath: &str, svg: &str) -> Result<(), BadgeError>
A convenience function to save an SVG to a file.
This will return BadgeError::CannotSaveToFile if the directory is malformed or cannot be accessed.