We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc65626 commit 9b6b0e1Copy full SHA for 9b6b0e1
src/libcore/iterator.rs
@@ -47,6 +47,7 @@ pub trait IteratorUtil<A> {
47
fn advance(&mut self, f: &fn(A) -> bool);
48
#[cfg(not(stage0))]
49
fn advance(&mut self, f: &fn(A) -> bool) -> bool;
50
+ #[cfg(not(stage0))]
51
fn to_vec(&mut self) -> ~[A];
52
fn nth(&mut self, n: uint) -> Option<A>;
53
fn last(&mut self) -> Option<A>;
@@ -146,6 +147,7 @@ impl<A, T: Iterator<A>> IteratorUtil<A> for T {
146
147
}
148
149
150
151
#[inline(always)]
152
fn to_vec(&mut self) -> ~[A] {
153
iter::to_vec::<A>(|f| self.advance(f))
0 commit comments