pub fn save_on_existing(&self, path : &str) -> Result<fs::File, io::Error> {
        let mut file = fs::File::open(path)?;
        file.write_all(&self.bytes)?;
        Ok(file)
    }
/// Saves the image to an existing file
/// 
/// # Example
/// ```
/// let meme = Meme::get("minecraft").unwrap();
/// 
/// let file = meme.image.save_on_existing("meme.png");
/// ```
Saves the image to an existing file
Saves the image to an existing file
pub fn save_on_existing(&self, path : &str) -> Result<fs::File, io::Error> {
        let mut file = fs::File::open(path)?;
        file.write_all(&self.bytes)?;
        Ok(file)
    }
pub fn save_on_existing ( & self , path : & str ) -> Result < fs :: File , io :: Error > { let mut file = fs :: File :: open ( path ) ? ; file . write_all ( & self . bytes ) ? ; Ok ( file ) }
Saves the image to an existing file
Saves the image to an existing file
&self
path
&str
&self
path
&str
example
```
let meme = Meme::get("minecraft").unwrap().

let file = meme.image.save_on_existing("meme.png");
```
` ` ` let meme = Meme :: get ( " minecraft " ) . unwrap () . let file = meme . image . save_on_existing ( " meme . png " ) ; ` ` `