pub fn decode<D: AsRef<Path>>(&self, dest: D) -> io::Result<()> {
        use {tar::Archive, zstd::Decoder};

        let mut archive = Archive::new(Decoder::new(self.data.as_slice())?);
        archive.unpack(dest)?;

        archive.into_inner().finish();
        Ok(())
    }
/// Decodes a `Build` into a destination directory at path `dest`.
/// # Errors
/// Returns `std::io::Error` when opening the decoder `zstd::Decoder`
/// or unpacking the archive fails.
Decodes a `Build` into a destination directory at path `dest`.
Decodes a ` Build ` into a destination directory at path ` dest ` .
pub fn decode<D: AsRef<Path>>(&self, dest: D) -> io::Result<()> {
        use {tar::Archive, zstd::Decoder};
        let mut archive = Archive::new(Decoder::new(self.data.as_slice())?);
        archive.unpack(dest)?;
        archive.into_inner().finish();
        Ok(())
    }
pub fn decode < D : AsRef < Path > > ( & self , dest : D ) -> io :: Result < ( ) > { use { tar :: Archive , zstd :: Decoder } ; let mut archive = Archive :: new ( Decoder :: new ( self . data . as_slice ( ) ) ? ) ; archive . unpack ( dest ) ? ; archive . into_inner ( ) . finish ( ) ; Ok ( ( ) ) }
Decodes a `Build` into a destination directory at path `dest`.
Decodes a ` Build ` into a destination directory at path ` dest ` .
&self
dest
D
&self
dest
D
errors
Returns `std::io::Error` when opening the decoder `zstd::Decoder`
or unpacking the archive fails.
Returns ` std :: io :: Error ` when opening the decoder ` zstd :: Decoder ` or unpacking the archive fails .