Skip to main content

IKeyValueCollection

Trait IKeyValueCollection 

Source
pub trait IKeyValueCollection<T, K> {
    // Required methods
    fn comparer(&self) -> &KeyValueComparer<T, K>;
    fn optimisations(&self) -> SortOptimisations;
    fn sort_reason(&self) -> SortReason;
    fn items(&self) -> &[(K, T)];
}
Expand description

The sorted pairs of a key and an item of a sorted change set (IKeyValueCollection<TObject, TKey>, a read-only list of KeyValuePair<TKey, TObject>).

Required Methods§

Source

fn comparer(&self) -> &KeyValueComparer<T, K>

The comparer of the pairs (Comparer).

Source

fn optimisations(&self) -> SortOptimisations

The optimisations of the sort (Optimisations).

Source

fn sort_reason(&self) -> SortReason

The reason of the sort (SortReason).

Source

fn items(&self) -> &[(K, T)]

The pairs, in order (the IReadOnlyList).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§