fn parse_registry_package(&mut self, line: &str)
                              -> CargoResult<(Summary, bool)> {
        let RegistryPackage {
            name, vers, cksum, deps, features, yanked
        } = try!(json::decode::<RegistryPackage>(line));
        let pkgid = try!(PackageId::new(&name, &vers, &self.source_id));
        let deps: CargoResult<Vec<Dependency>> = deps.into_iter().map(|dep| {
            self.parse_registry_dependency(dep)
        }).collect();
        let deps = try!(deps);
        self.hashes.insert((name, vers), cksum);
        Ok((try!(Summary::new(pkgid, deps, features)), yanked.unwrap_or(false)))
    }
/// Parse a line from the registry's index file into a Summary for a
/// package.
///
/// The returned boolean is whether or not the summary has been yanked.
Parse a line from the registry's index file into a Summary for a
package.

The returned boolean is whether or not the summary has been yanked.
Parse a line from the registry ' s index file into a Summary for a package . The returned boolean is whether or not the summary has been yanked .
fn parse_registry_package(&mut self, line: &str)
                              -> CargoResult<(Summary, bool)> {
        let RegistryPackage {
            name, vers, cksum, deps, features, yanked
        } = try!(json::decode::<RegistryPackage>(line));
        let pkgid = try!(PackageId::new(&name, &vers, &self.source_id));
        let deps: CargoResult<Vec<Dependency>> = deps.into_iter().map(|dep| {
            self.parse_registry_dependency(dep)
        }).collect();
        let deps = try!(deps);
        self.hashes.insert((name, vers), cksum);
        Ok((try!(Summary::new(pkgid, deps, features)), yanked.unwrap_or(false)))
    }
fn parse_registry_package ( & mut self , line : & str ) -> CargoResult < ( Summary , bool ) > { let RegistryPackage { name , vers , cksum , deps , features , yanked } = try ! ( json decode RegistryPackage ( line ) ) ; let pkgid = try ! ( PackageId new ( name vers self source_id ) ) ; let deps : CargoResult < Vec < Dependency > > = deps . into_iter ( ) . map ( | dep | { self . parse_registry_dependency ( dep ) } ) . collect ( ) ; let deps = try ! ( deps ) ; self . hashes . insert ( ( name , vers ) , cksum ) ; Ok ( ( try ! ( Summary new ( pkgid deps features ) ) , yanked . unwrap_or ( false ) ) ) }
Parse a line from the registry's index file into a Summary for a
package.
Parse a line from the registry ' s index file into a Summary for a package .
&mut self
line
&str
&mut self
line
&str