pub fn write_to_file<P: AsRef<Path>>(&self, path: P) -> std::io::Result<()> {
        let mut file = std::fs::File::create(path)?;
        crate::export::write_buffered(&mut file, |c| {
            crate::export::write_ssbh_header_and_data(c, &self.data)
        })?;
        Ok(())
    }
/// Writes the data to the given path.
/// The entire file is buffered for performance.
Writes the data to the given path.
The entire file is buffered for performance.
Writes the data to the given path . The entire file is buffered for performance .
pub fn write_to_file<P: AsRef<Path>>(&self, path: P) -> std::io::Result<()> {
        let mut file = std::fs::File::create(path)?;
        crate::export::write_buffered(&mut file, |c| {
            crate::export::write_ssbh_header_and_data(c, &self.data)
        })?;
        Ok(())
    }
pub fn write_to_file < P : AsRef < Path > > ( & self , path : P ) -> std :: io :: Result < ( ) > { let mut file = std :: fs :: File :: create ( path ) ? ; crate :: export :: write_buffered ( & mut file , | c | { crate :: export :: write_ssbh_header_and_data ( c , & self . data ) } ) ? ; Ok ( ( ) ) }
Writes the data to the given path.
Writes the data to the given path .
&self
path
P
&self
path
P