type IMPL_T = dvec::dvec;
/**
* Iterates through the current contents.
*
* Attempts to access this dvec during iteration will fail.
*/
fn EACH(self: IMPL_T, f: fn(A) -> bool) {
import dvec::extensions;
self.swap(|v| { vec::each(v, f); v })
}
fn SIZE_HINT(self: IMPL_T) -> option {
import dvec::extensions;
some(self.len())
}