Trait DynamicSet

Source
pub trait DynamicSet:
    Debug
    + Send
    + Sync {
    // Required methods
    fn with_capacity(capacity: usize) -> Self;
    fn insert(&mut self, v: u64) -> bool;
    fn contains(&self, v: &u64) -> bool;
    fn remove(&mut self, v: &u64) -> bool;
    fn len(&self) -> usize;
    fn is_empty(&self) -> bool;
    fn iter(&self) -> impl Iterator<Item = &u64>;
}

Required Methods§

Source

fn with_capacity(capacity: usize) -> Self

Source

fn insert(&mut self, v: u64) -> bool

Source

fn contains(&self, v: &u64) -> bool

Source

fn remove(&mut self, v: &u64) -> bool

Source

fn len(&self) -> usize

Source

fn is_empty(&self) -> bool

Source

fn iter(&self) -> impl Iterator<Item = &u64>

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§