ferroui_dynamic_data/cache/change_reason.rs
1//! `ChangeReason` (`Cache/ChangeReason.cs`).
2
3/// The reason of a change of a cache (`ChangeReason`).
4#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
5pub enum ChangeReason {
6 /// An item was added (`Add`).
7 Add = 0,
8 /// An item replaced the item of its key (`Update`).
9 Update = 1,
10 /// An item was removed (`Remove`).
11 Remove = 2,
12 /// An item asks to be evaluated again by the operators downstream: filters, sorts, groups
13 /// (`Refresh`).
14 Refresh = 3,
15 /// An item moved within a sorted collection (`Moved`).
16 Moved = 4,
17}