imdl 0.1.16

📦 A 40' shipping container for the internet
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::common::*;

#[derive(Clone, Copy, Debug, PartialEq, IntoStaticStr, EnumString)]
#[strum(serialize_all = "kebab-case")]
pub(crate) enum SortKey {
  Path,
  Size,
}

impl SortKey {
  pub(crate) fn name(self) -> &'static str {
    self.into()
  }
}