IGrouping
trait · ferroui-dynamic-data · v0.5.0
trait IGrouping<T, K, G>
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.
Members
count
fn count(self: &Self) -> usize
The number of items (Count).
items
fn items(self: &Self) -> Vec<T>
The items (Items).
key
fn key(self: &Self) -> &G
The group key (Key).
keys
fn keys(self: &Self) -> Vec<K>
The keys of the items (Keys).
key_values
fn key_values(self: &Self) -> Vec<(K, T)>
The keys with their items (KeyValues).
lookup
fn lookup(self: &Self, key: &K) -> Option<T>
The item of key (Lookup).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.