#[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(v: &A) -> bool) { unsafe { do self.swap |v| { v.each(f); move v } } } pure fn SIZE_HINT(self: &IMPL_T) -> Option { Some(self.len()) }