ferroui_dynamic_data/cache/sort_reason.rs
1//! `SortReason` (`Cache/SortReason.cs`).
2
3/// Why a sorted change set was produced (`SortReason`).
4#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
5pub enum SortReason {
6 /// The first batch of items (`InitialLoad`).
7 #[default]
8 InitialLoad,
9 /// The comparer changed (`ComparerChanged`).
10 ComparerChanged,
11 /// The items changed (`DataChanged`).
12 DataChanged,
13 /// The items were sorted again, as asked (`Reorder`).
14 Reorder,
15 /// The sorted collection was rebuilt, because of the size of the changes (`Reset`).
16 Reset,
17}