pub trait VecExtensions<T> {
// Required methods
fn push_unique(&mut self, item: T)
where T: PartialEq;
fn extend_unique(&mut self, iter: impl IntoIterator<Item = T>)
where T: PartialEq;
fn deduplicate(&mut self)
where T: Hash + Eq + Copy;
}Required Methods§
fn push_unique(&mut self, item: T)where
T: PartialEq,
fn extend_unique(&mut self, iter: impl IntoIterator<Item = T>)where
T: PartialEq,
fn deduplicate(&mut self)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".