Skip to main content

HistoryEntryPresenter

Trait HistoryEntryPresenter 

pub trait HistoryEntryPresenter {
    // Required method
    fn face(&self, entry: &HistoryEntry) -> Option<EntryFace>;

    // Provided method
    fn group_summary(&self, entries: &[HistoryEntry]) -> Option<String> { ... }
}
Expand description

An app’s presentation of the changes in its History. Asked once per listed change each time the list changes, so answering is cheap: it reads the entry’s facts, nothing else.

Required Methods§

fn face(&self, entry: &HistoryEntry) -> Option<EntryFace>

How entry shows, or None for its sentence.

Provided Methods§

fn group_summary(&self, entries: &[HistoryEntry]) -> Option<String>

What a band of entries amounts to, said on its second line in place of how many characters moved (“4 functions, 7 calculations”). None keeps the default, which suits text.

Implementors§