patternfly_yew/core/order.rs
1use std::ops::Not;
2
3#[derive(Copy, Clone, Debug, Eq, PartialEq)]
4pub enum Order {
5 Ascending,
6 Descending,
7}
8
9impl Not for Order {
10 type Output = Self;
11
12 fn not(self) -> Self::Output {
13 match self {
14 Self::Ascending => Self::Descending,
15 Self::Descending => Self::Ascending,
16 }
17 }
18}