Trait libgitdit::iter::MessagesExt [] [src]

pub trait MessagesExt {
    fn accumulate_trailers<'a, A, I, J>(self, specs: I) -> A
    where
        A: MultiAccumulator + FromIterator<(String, ValueAccumulator)>,
        I: IntoIterator<Item = J>,
        J: Borrow<TrailerSpec<'a>>
; }

Messages iterator extension trait

This trait provides some convenience functionality for iterators over Messages which does not need to be part of Messages or another iterator.

Required Methods

Accumulate trailers according to the specification provided

This function accumulates all specified trailers from the messages returned by the iterator.

Implementors