Function rsbadges::save_svg

source ·
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.