pub trait ScoreProvider<AccountId> {
    type Score;

    fn score(who: &AccountId) -> Self::Score;
}
Expand description

Something that can provide the Score of an account. Similar to ElectionProvider and ElectionDataProvider, this should typically be implementing by whoever is supposed to use SortedListProvider.

Required Associated Types§

Required Methods§

Get the current Score of who.

Implementors§