[][src]Struct grin_chain::store::DifficultyIter

pub struct DifficultyIter<'a> { /* fields omitted */ }

An iterator on blocks, from latest to earliest, specialized to return information pertaining to block difficulty calculation (timestamp and previous difficulties). Mostly used by the consensus next difficulty calculation.

Methods

impl<'a> DifficultyIter<'a>[src]

Important traits for DifficultyIter<'a>
pub fn from<'b>(start: Hash, store: Arc<ChainStore>) -> DifficultyIter<'b>[src]

Build a new iterator using the provided chain store and starting from the provided block hash.

Important traits for DifficultyIter<'a>
pub fn from_batch(start: Hash, batch: Batch) -> DifficultyIter[src]

Build a new iterator using the provided chain store batch and starting from the provided block hash.

Trait Implementations

impl<'a> Iterator for DifficultyIter<'a>[src]

type Item = HeaderInfo

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> !Send for DifficultyIter<'a>

impl<'a> !Sync for DifficultyIter<'a>

impl<'a> Unpin for DifficultyIter<'a>

impl<'a> !UnwindSafe for DifficultyIter<'a>

impl<'a> !RefUnwindSafe for DifficultyIter<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> UnsafeAny for T where
    T: Any

impl<I> SliceIterExt for I where
    I: Iterator + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,