fn ancestors<'a>(
        &'a self,
        mut maybe_hash: Option<&'a C::Hash>,
    ) -> impl Iterator<Item = &'a C::ConsensusValue> {
        iter::from_fn(move || {
            let hash = maybe_hash.take()?;
            let block = self.highway.state().block(hash);
            let value = Some(&block.value);
            maybe_hash = block.parent();
            value
        })
    }
/// Returns an iterator over all the values that are in parents of the given block.
Returns an iterator over all the values that are in parents of the given block.
Returns an iterator over all the values that are in parents of the given block .
fn ancestors<'a>(
        &'a self,
        mut maybe_hash: Option<&'a C::Hash>,
    ) -> impl Iterator<Item = &'a C::ConsensusValue> {
        iter::from_fn(move || {
            let hash = maybe_hash.take()?;
            let block = self.highway.state().block(hash);
            let value = Some(&block.value);
            maybe_hash = block.parent();
            value
        })
    }
fn ancestors < ' a > ( & ' a self , mut maybe_hash : Option < & ' a C :: Hash > , ) -> impl Iterator < Item = & ' a C :: ConsensusValue > { iter :: from_fn ( move | | { let hash = maybe_hash . take ( ) ? ; let block = self . highway . state ( ) . block ( hash ) ; let value = Some ( & block . value ) ; maybe_hash = block . parent ( ) ; value } ) }
Returns an iterator over all the values that are in parents of the given block.
Returns an iterator over all the values that are in parents of the given block .
&'a self
maybe_hash
Option<&'a C::Hash>
&'a self
maybe_hash
Option<&'a C::Hash>