Skip to content

Commit 1960503

Browse files
author
Satyarth Agrahari
committed
adding time complexity for partition_in_place iter method
1 parent 1025db8 commit 1960503

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/iter/traits/iterator.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1849,6 +1849,8 @@ pub trait Iterator {
18491849
///
18501850
/// The relative order of partitioned items is not maintained.
18511851
///
1852+
/// Time Complexity: *O*(*N*)
1853+
///
18521854
/// See also [`is_partitioned()`] and [`partition()`].
18531855
///
18541856
/// [`is_partitioned()`]: Iterator::is_partitioned

0 commit comments

Comments
 (0)