mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
add iter-from for bags-list (#11104)
* add iter-from for bags-list * Fix * Apply suggestions from code review Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
@@ -441,6 +441,11 @@ pub trait SortedListProvider<AccountId> {
|
||||
/// An iterator over the list, which can have `take` called on it.
|
||||
fn iter() -> Box<dyn Iterator<Item = AccountId>>;
|
||||
|
||||
/// Returns an iterator over the list, starting right after from the given voter.
|
||||
///
|
||||
/// May return an error if `start` is invalid.
|
||||
fn iter_from(start: &AccountId) -> Result<Box<dyn Iterator<Item = AccountId>>, Self::Error>;
|
||||
|
||||
/// The current count of ids in the list.
|
||||
fn count() -> u32;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user