pub fn all_blobs(&self) -> HashSet<Hash> {
        self.packages
            .iter()
            .flat_map(|(hash, package)| {
                let blobs = match &package.package {
                    Package::Pending => None,
                    Package::WithMetaFar { required_blobs, .. } => Some(required_blobs.iter()),
                    Package::Active { required_blobs, .. } => Some(required_blobs.iter()),
                };
                std::iter::once(hash).chain(blobs.into_iter().flatten())
            })
            .cloned()
            .collect()
    }
/// Returns all blobs protected by the dynamic index.
Returns all blobs protected by the dynamic index.
Returns all blobs protected by the dynamic index .
pub fn all_blobs(&self) -> HashSet<Hash> {
        self.packages
            .iter()
            .flat_map(|(hash, package)| {
                let blobs = match &package.package {
                    Package::Pending => None,
                    Package::WithMetaFar { required_blobs, .. } => Some(required_blobs.iter()),
                    Package::Active { required_blobs, .. } => Some(required_blobs.iter()),
                };
                std::iter::once(hash).chain(blobs.into_iter().flatten())
            })
            .cloned()
            .collect()
    }
pub fn all_blobs ( & self ) -> HashSet < Hash > { self . packages . iter ( ) . flat_map ( | ( hash , package ) | { let blobs = match & package . package { Package :: Pending => None , Package :: WithMetaFar { required_blobs , .. } => Some ( required_blobs . iter ( ) ) , Package :: Active { required_blobs , .. } => Some ( required_blobs . iter ( ) ) , } ; std :: iter :: once ( hash ) . chain ( blobs . into_iter ( ) . flatten ( ) ) } ) . cloned ( ) . collect ( ) }
Returns all blobs protected by the dynamic index.
Returns all blobs protected by the dynamic index .
&self
&self