blob: efab0b70b5754dff9ffc04179e26adadd0f101d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
type IMPL_T<A> = dvec::dvec<A>;
/**
* Iterates through the current contents.
*
* Attempts to access this dvec during iteration will fail.
*/
fn EACH<A>(self: IMPL_T<A>, f: fn(A) -> bool) {
import dvec::extensions;
self.swap(|v| { vec::each(v, f); v })
}
fn SIZE_HINT<A>(self: IMPL_T<A>) -> option<uint> {
import dvec::extensions;
some(self.len())
}
|