pub trait IQuery<T, K> {
// Required methods
fn count(&self) -> usize;
fn items(&self) -> Vec<T>;
fn keys(&self) -> Vec<K>;
fn key_values(&self) -> Vec<(K, T)>;
fn lookup(&self, key: &K) -> Option<T>;
}Expand description
Read access to a keyed collection (IQuery<TObject, TKey>).
Required Methods§
Sourcefn key_values(&self) -> Vec<(K, T)>
fn key_values(&self) -> Vec<(K, T)>
The keys and items, in the order of enumeration (KeyValues).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".