fn block_hashes(items: &'_ [InventoryHash]) -> impl Iterator<Item = block::Hash> + '_ {
    items.iter().filter_map(|item| {
        if let InventoryHash::Block(hash) = item {
            Some(*hash)
        } else {
            None
        }
    })
}
/// Map a list of inventory hashes to the corresponding block hashes.
/// Non-block inventory hashes are skipped.
Map a list of inventory hashes to the corresponding block hashes.
Non-block inventory hashes are skipped.
Map a list of inventory hashes to the corresponding block hashes . Non - block inventory hashes are skipped .
fn block_hashes(items: &'_ [InventoryHash]) -> impl Iterator<Item = block::Hash> + '_ {
    items.iter().filter_map(|item| {
        if let InventoryHash::Block(hash) = item {
            Some(*hash)
        } else {
            None
        }
    })
}
fn block_hashes ( items : & ' _ [ InventoryHash ] ) -> impl Iterator < Item = block :: Hash > + ' _ { items . iter ( ) . filter_map ( | item | { if let InventoryHash :: Block ( hash ) = item { Some ( * hash ) } else { None } } ) }
Map a list of inventory hashes to the corresponding block hashes.
Map a list of inventory hashes to the corresponding block hashes .
items
&'_ [InventoryHash]