Trait std::slice::OwnedEqVector
pub trait OwnedEqVector<T: Eq> { fn dedup(&mut self); }
Extension methods for owned vectors containing Eq
elements.
Required Methods
fn dedup(&mut self)
Remove consecutive repeated elements from a vector; if the vector is sorted, this removes all duplicates.
Implementors
impl<T: Eq> OwnedEqVector<T> for ~[T]