summaryrefslogtreecommitdiffstats
path: root/src/selection_type.rs
blob: be2012c01c46b51eb01660d1227b14b870b7bfab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum SelectionType {
    File,
    Directory,
    Any,
}

impl SelectionType {
    pub fn respects(self, constraint: Self) -> bool {
        constraint == Self::Any || self == constraint
    }
}