pub trait KeySet<K> {
// Required methods
fn len(&self) -> usize;
fn contains(&self, key: &K) -> bool;
fn for_each(&self, out: &mut dyn FnMut(&K));
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
A set-like collection that can drive SetTrie traversal.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".