Trait SetExt

Source
pub trait SetExt<T> {
    // Required method
    fn pop_first_if(&mut self, f: impl FnMut(&T) -> bool) -> Option<T>;
}

Required Methods§

Source

fn pop_first_if(&mut self, f: impl FnMut(&T) -> bool) -> Option<T>

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: Ord> SetExt<T> for BTreeSet<T>

Source§

fn pop_first_if(&mut self, f: impl FnMut(&T) -> bool) -> Option<T>

Implementors§