ferroui-dynamic-data 0.3.0

A port of DynamicData for FerroUI: reactive collections, change sets, observable caches and lists with their operators, independent of the user interface
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! `SortReason` (`Cache/SortReason.cs`).

/// Why a sorted change set was produced (`SortReason`).
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
pub enum SortReason {
    /// The first batch of items (`InitialLoad`).
    #[default]
    InitialLoad,
    /// The comparer changed (`ComparerChanged`).
    ComparerChanged,
    /// The items changed (`DataChanged`).
    DataChanged,
    /// The items were sorted again, as asked (`Reorder`).
    Reorder,
    /// The sorted collection was rebuilt, because of the size of the changes (`Reset`).
    Reset,
}