yfunc_rust

Trait Unique

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

Required Methods§

Source

fn unique(&self) -> Self

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> Unique for Vec<T>
where T: Eq + Hash + Clone,

Source§

fn unique(&self) -> Self

Implementors§