pub trait IGrouping<T, K, G> {
// Required methods
fn count(&self) -> usize;
fn items(&self) -> Vec<T>;
fn key(&self) -> &G;
fn keys(&self) -> Vec<K>;
fn key_values(&self) -> Vec<(K, T)>;
fn lookup(&self, key: &K) -> Option<T>;
}Expand description
The state of a group at one moment (IGrouping<TObject, TKey, TGroupKey>): the items of the
change sets of GroupWithImmutableState and GroupOnPropertyWithImmutableState, which replace
a group with a new state whenever its items change.
Required Methods§
Sourcefn key_values(&self) -> Vec<(K, T)>
fn key_values(&self) -> Vec<(K, T)>
The keys with their items (KeyValues).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".