fn range<'a>(
        &'a self,
        range: std::ops::Range<Height>,
    ) -> impl Iterator<Item = &CachedBlock> + 'a {
        assert!(
            range.start <= range.end,
            "BlockCache::range: range start must not be greater than range end"
        );

        self.chain
            .iter()
            .skip(range.start as usize)
            .take((range.end - range.start) as usize)
    }
/// Iterate over a range of blocks.
///
/// # Errors
///
/// Panics if the range is negative.
///
Iterate over a range of blocks.
Iterate over a range of blocks .
fn range<'a>(
        &'a self,
        range: std::ops::Range<Height>,
    ) -> impl Iterator<Item = &CachedBlock> + 'a {
        assert!(
            range.start <= range.end,
            "BlockCache::range: range start must not be greater than range end"
        );
        self.chain
            .iter()
            .skip(range.start as usize)
            .take((range.end - range.start) as usize)
    }
fn range < ' a > ( & ' a self , range : std :: ops :: Range < Height > , ) -> impl Iterator < Item = & CachedBlock > + ' a { assert ! ( range start range end " " ) ; self . chain . iter ( ) . skip ( range . start as usize ) . take ( ( range . end - range . start ) as usize ) }
Iterate over a range of blocks.
Iterate over a range of blocks .
&'a self
range
std::ops::Range<Height>
errors
Panics if the range is negative.
Panics if the range is negative .