Trait dds_bridge::SmallSet
source · pub trait SmallSet<T>: Copy + Eq + BitAnd + BitOr + BitXor + Not + Sub {
const EMPTY: Self;
const ALL: Self;
// Required methods
fn len(self) -> usize;
fn contains(self, value: T) -> bool;
fn insert(&mut self, value: T) -> bool;
fn remove(&mut self, value: T) -> bool;
fn toggle(&mut self, value: T) -> bool;
fn iter(self) -> impl Iterator<Item = T>;
// Provided method
fn is_empty(self) -> bool { ... }
}Expand description
A bitset whose size is known at compile time
Required Associated Constants§
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.