#[allow(non_camel_case_types)]
type IMPL_T = dvec::DVec;
/**
* Iterates through the current contents.
*
* Attempts to access this dvec during iteration will fail.
*/
pure fn EACH(self: IMPL_T, f: fn(A) -> bool) {
unsafe {
do self.swap |v| {
vec::each(v, f);
move v
}
}
}
pure fn SIZE_HINT(self: IMPL_T) -> Option {
Some(self.len())
}