pub fn members_mut(&mut self) -> impl Iterator<Item = &mut Package> {
        let packages = &mut self.packages.packages;
        let members: HashSet<_> = self
            .members
            .iter()
            .map(|path| path.parent().unwrap().to_owned())
            .collect();

        packages.iter_mut().filter_map(move |(path, package)| {
            if members.contains(path) {
                if let MaybePackage::Package(ref mut p) = package {
                    return Some(p);
                }
            }

            None
        })
    }
/// Returns a mutable iterator over all packages in this workspace
Returns a mutable iterator over all packages in this workspace
Returns a mutable iterator over all packages in this workspace
pub fn members_mut(&mut self) -> impl Iterator<Item = &mut Package> {
        let packages = &mut self.packages.packages;
        let members: HashSet<_> = self
            .members
            .iter()
            .map(|path| path.parent().unwrap().to_owned())
            .collect();
        packages.iter_mut().filter_map(move |(path, package)| {
            if members.contains(path) {
                if let MaybePackage::Package(ref mut p) = package {
                    return Some(p);
                }
            }
            None
        })
    }
pub fn members_mut ( & mut self ) -> impl Iterator < Item = & mut Package > { let packages = & mut self . packages . packages ; let members : HashSet < _ > = self . members . iter ( ) . map ( | path | path . parent ( ) . unwrap ( ) . to_owned ( ) ) . collect ( ) ; packages . iter_mut ( ) . filter_map ( move | ( path , package ) | { if members . contains ( path ) { if let MaybePackage :: Package ( ref mut p ) = package { return Some ( p ) ; } } None } ) }
Returns a mutable iterator over all packages in this workspace
Returns a mutable iterator over all packages in this workspace
&mut self
&mut self