Trait Unique

Source
pub trait Unique<T> {
    // Required method
    fn unique<P>(&mut self, pred: P) -> Option<T>
       where P: FnMut(&T) -> bool;
}

Required Methods§

Source

fn unique<P>(&mut self, pred: P) -> Option<T>
where P: FnMut(&T) -> bool,

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.

Implementors§

Source§

impl<T, I> Unique<T> for I
where I: Iterator<Item = T>,