Trait Set

Source
pub trait Set<A>: Empty {
    // Required methods
    fn insert(self, value: A) -> Self;
    fn member(&self, value: A) -> bool;
    fn size(&self) -> usize;
}

Required Methods§

Source

fn insert(self, value: A) -> Self

Source

fn member(&self, value: A) -> bool

Source

fn size(&self) -> usize

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<A: Clone + PartialEq + PartialOrd> Set<A> for Tree<A>