Unique

Trait Unique 

Source
pub trait Unique {
    // Required method
    fn unique(&self) -> Self;
}
Expand description

Trait to extract unique items from collections.

Required Methods§

Source

fn unique(&self) -> Self

Returns the same collection, but with all duplicates removed

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: Clone + PartialEq> Unique for Vec<T>

Source§

fn unique(&self) -> Self

Implementors§