Function rsbadges::save_svg[][src]

pub fn save_svg(filepath: &str, svg: &str) -> Result<(), BadgeError>

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.