Trait SetHandle
pub trait SetHandle<V>:
Default
+ Clone
+ Extend<V>
+ IntoIterator<Item = V>where
V: Value,{
// Required methods
fn is_empty(&self) -> bool;
fn clear(&mut self);
fn remove(&mut self, value: &V) -> bool;
fn insert(&mut self, value: V) -> bool;
fn iter<'a>(&'a self) -> impl Iterator<Item = &'a V>
where V: 'a;
// Provided method
fn new(value: V) -> Self { ... }
}Expand description
For storing values in the TPT.
Required Methods§
fn is_empty(&self) -> bool
fn clear(&mut self)
fn remove(&mut self, value: &V) -> bool
fn insert(&mut self, value: V) -> bool
fn iter<'a>(&'a self) -> impl Iterator<Item = &'a V>where
V: 'a,
Provided Methods§
fn new(value: V) -> Self
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.