pub fn maturing_referenda_at(
		n: T::BlockNumber
	) -> Vec<(ReferendumIndex, ReferendumInfo<T::BlockNumber, T::Proposal>)> {
		let next = Self::next_tally();
		let last = Self::referendum_count();
		(next..last).into_iter()
			.filter_map(|i| Self::referendum_info(i).map(|info| (i, info)))
			.take_while(|&(_, ref info)| info.end == n)
			.collect()
	}
/// Get all referenda ready for tally at block `n`.
Get all referenda ready for tally at block `n`.
Get all referenda ready for tally at block ` n ` .
pub fn maturing_referenda_at(
		n: T::BlockNumber
	) -> Vec<(ReferendumIndex, ReferendumInfo<T::BlockNumber, T::Proposal>)> {
		let next = Self::next_tally();
		let last = Self::referendum_count();
		(next..last).into_iter()
			.filter_map(|i| Self::referendum_info(i).map(|info| (i, info)))
			.take_while(|&(_, ref info)| info.end == n)
			.collect()
	}
pub fn maturing_referenda_at ( n : T :: BlockNumber ) -> Vec < ( ReferendumIndex , ReferendumInfo < T :: BlockNumber , T :: Proposal > ) > { let next = Self :: next_tally ( ) ; let last = Self :: referendum_count ( ) ; ( next .. last ) . into_iter ( ) . filter_map ( | i | Self :: referendum_info ( i ) . map ( | info | ( i , info ) ) ) . take_while ( | & ( _ , ref info ) | info . end == n ) . collect ( ) }
Get all referenda ready for tally at block `n`.
Get all referenda ready for tally at block ` n ` .
n
T::BlockNumber
n
T::BlockNumber