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§
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>
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.