Skip to main content

imdl/
sort_key.rs

1use crate::common::*;
2
3#[derive(Clone, Copy, Debug, PartialEq, IntoStaticStr, EnumString)]
4#[strum(serialize_all = "kebab-case")]
5pub(crate) enum SortKey {
6  Path,
7  Size,
8}
9
10impl SortKey {
11  pub(crate) fn name(self) -> &'static str {
12    self.into()
13  }
14}