pub fn unpack<P: AsRef<Path>>(&self, spec: &Spec, dest: P) -> Result<(), error::Unpack> {
        self.distributions
            .get(spec)
            .ok_or(error::Unpack::SpecNotFound)?
            .decode(dest)?;

        Ok(())
    }
/// Decodes the compressed `Build` into a directory with the path `dest`
/// # Errors
/// Returns `lib::error::Unpacking::SpecNotFound` when the package does not contain a build associated
/// with the specification `spec`
Decodes the compressed `Build` into a directory with the path `dest`
Decodes the compressed ` Build ` into a directory with the path ` dest `
pub fn unpack<P: AsRef<Path>>(&self, spec: &Spec, dest: P) -> Result<(), error::Unpack> {
        self.distributions
            .get(spec)
            .ok_or(error::Unpack::SpecNotFound)?
            .decode(dest)?;
        Ok(())
    }
pub fn unpack < P : AsRef < Path > > ( & self , spec : & Spec , dest : P ) -> Result < ( ) , error :: Unpack > { self . distributions . get ( spec ) . ok_or ( error :: Unpack :: SpecNotFound ) ? . decode ( dest ) ? ; Ok ( ( ) ) }
Decodes the compressed `Build` into a directory with the path `dest`
Decodes the compressed ` Build ` into a directory with the path ` dest `
&self
spec
&Spec
dest
P
&self
spec
&Spec
dest
P
errors
Returns `lib::error::Unpacking::SpecNotFound` when the package does not contain a build associated
with the specification `spec`
Returns ` lib :: error :: Unpacking :: SpecNotFound ` when the package does not contain a build associated with the specification ` spec `