fn partition(self, era: EraIndex) -> (Self, Self) {
		let (matching_chunks, other_chunks): (
			Vec<UnlockingChunk<Balance>>,
			Vec<UnlockingChunk<Balance>>,
		) = self.unlocking_chunks.iter().partition(|chunk| chunk.unlock_era <= era);

		(Self { unlocking_chunks: matching_chunks }, Self { unlocking_chunks: other_chunks })
	}
/// Partitions the unlocking chunks into two groups:
///
/// First group includes all chunks which have unlock era lesser or equal to the specified era.
/// Second group includes all the rest.
///
/// Order of chunks is preserved in the two new structs.
Partitions the unlocking chunks into two groups:
First group includes all chunks which have unlock era lesser or equal to the specified era.
Second group includes all the rest.

Order of chunks is preserved in the two new structs.
Partitions the unlocking chunks into two groups : First group includes all chunks which have unlock era lesser or equal to the specified era . Second group includes all the rest . Order of chunks is preserved in the two new structs .
fn partition(self, era: EraIndex) -> (Self, Self) {
		let (matching_chunks, other_chunks): (
			Vec<UnlockingChunk<Balance>>,
			Vec<UnlockingChunk<Balance>>,
		) = self.unlocking_chunks.iter().partition(|chunk| chunk.unlock_era <= era);
		(Self { unlocking_chunks: matching_chunks }, Self { unlocking_chunks: other_chunks })
	}
fn partition ( self , era : EraIndex ) -> ( Self , Self ) { let ( matching_chunks , other_chunks ) : ( Vec < UnlockingChunk < Balance > > , Vec < UnlockingChunk < Balance > > , ) = self . unlocking_chunks . iter ( ) . partition ( | chunk | chunk . unlock_era <= era ) ; ( Self { unlocking_chunks : matching_chunks } , Self { unlocking_chunks : other_chunks } ) }
Partitions the unlocking chunks into two groups:
First group includes all chunks which have unlock era lesser or equal to the specified era.
Partitions the unlocking chunks into two groups : First group includes all chunks which have unlock era lesser or equal to the specified era .
self
era
EraIndex