Skip to main content

SetInsert

Trait SetInsert 

Source
pub trait SetInsert<T> {
    // Required method
    fn insert(&mut self, t: T) -> bool;
}

Required Methods§

Source

fn insert(&mut self, t: T) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: Eq + Hash> SetInsert<T> for HashSet<T>

Source§

fn insert(&mut self, t: T) -> bool

Source§

impl<T: Ord> SetInsert<T> for BTreeSet<T>

Source§

fn insert(&mut self, t: T) -> bool

Implementors§