pub fn encode_to_path(&self, tag: &Tag, path: impl AsRef<Path>) -> crate::Result<()> {
        let mut file = fs::OpenOptions::new().read(true).write(true).open(path)?;
        self.encode_to_file(tag, &mut file)?;
        file.flush()?;
        Ok(())
    }
/// Encodes a [`Tag`] and replaces any existing tag in the file pointed to by the specified path.
Encodes a [`Tag`] and replaces any existing tag in the file pointed to by the specified path.
Encodes a [ ` Tag ` ] and replaces any existing tag in the file pointed to by the specified path .
pub fn encode_to_path(&self, tag: &Tag, path: impl AsRef<Path>) -> crate::Result<()> {
        let mut file = fs::OpenOptions::new().read(true).write(true).open(path)?;
        self.encode_to_file(tag, &mut file)?;
        file.flush()?;
        Ok(())
    }
pub fn encode_to_path ( & self , tag : & Tag , path : impl AsRef < Path > ) -> crate :: Result < ( ) > { let mut file = fs :: OpenOptions :: new ( ) . read ( true ) . write ( true ) . open ( path ) ? ; self . encode_to_file ( tag , & mut file ) ? ; file . flush ( ) ? ; Ok ( ( ) ) }
Encodes a [`Tag`] and replaces any existing tag in the file pointed to by the specified path.
Encodes a [ ` Tag ` ] and replaces any existing tag in the file pointed to by the specified path .
&self
tag
&Tag
path
impl AsRef<Path>
&self
tag
&Tag
path
impl AsRef<Path>