Skip to main content

ISortedChangeSet

Trait ISortedChangeSet 

Source
pub trait ISortedChangeSet<T, K>: IChangeSet<T, K> {
    // Required method
    fn sorted_items(&self) -> &KeyValueCollection<T, K>;

    // Provided method
    fn to_sorted_change_set(&self) -> SortedChangeSet<T, K> { ... }
}
Expand description

A change set with the sorted items it leads to (ISortedChangeSet<TObject, TKey>): the sorted change set, and the paged and virtual ones, which are sorted too.

Required Methods§

Source

fn sorted_items(&self) -> &KeyValueCollection<T, K>

The items, sorted (SortedItems).

Provided Methods§

Source

fn to_sorted_change_set(&self) -> SortedChangeSet<T, K>

The change set as a plain sorted one (the upcast to ISortedChangeSet<TObject, TKey>).

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T: 'static, K: 'static> ISortedChangeSet<T, K> for PagedChangeSet<T, K>

Source§

impl<T: 'static, K: 'static> ISortedChangeSet<T, K> for SortedChangeSet<T, K>

Source§

impl<T: 'static, K: 'static> ISortedChangeSet<T, K> for VirtualChangeSet<T, K>