/// Writes the represented QR-Bill into an SVG file.
///
/// * `full_page`: Makes the generated SVG the size of a full A4 page.
Writes the represented QR-Bill into an SVG file.
`full_page`: Makes the generated SVG the size of a full A4 page.
Writes the represented QR - Bill into an SVG file . ` full_page ` : Makes the generated SVG the size of a full A4 page .
pub fn write_to_file(
        &self,
        path: impl AsRef<std::path::Path>,
        full_page: bool,
    ) -> Result<(), Error> {
        let svg = self.create_svg(full_page)?;
        std::fs::write(path, svg)?;
        Ok(())
    }
pub fn write_to_file ( & self , path : impl AsRef < std :: path :: Path > , full_page : bool , ) -> Result < ( ) , Error > { let svg = self . create_svg ( full_page ) ? ; std :: fs :: write ( path , svg ) ? ; Ok ( ( ) ) }
Writes the represented QR-Bill into an SVG file.
Writes the represented QR - Bill into an SVG file .
&self
path
impl AsRef<std::path::Path>
full_page
bool