diff options
author | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-02-15 06:28:47 +0000 |
---|---|---|
committer | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-02-15 06:28:47 +0000 |
commit | 8207a48a612fb6971e0b8fc8924c133e12b2ea36 (patch) | |
tree | 85ad12572759b85b1f16a2eb5e2d8b227a6ffa69 /src | |
parent | Added global_settings to CLIArgs struct (diff) | |
download | miniserve-8207a48a612fb6971e0b8fc8924c133e12b2ea36.tar.gz miniserve-8207a48a612fb6971e0b8fc8924c133e12b2ea36.zip |
Added docstrings to SortingMethods enum
Diffstat (limited to '')
-rw-r--r-- | src/listing.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/listing.rs b/src/listing.rs index 6d956ac..f82764e 100644 --- a/src/listing.rs +++ b/src/listing.rs @@ -10,6 +10,15 @@ use std::path::Path; arg_enum! { #[derive(Clone, Copy, Debug)] /// Available sorting methods + /// + /// Natural: natural sorting method + /// 1 -> 2 -> 3 -> 11 + /// + /// Alpha: pure alphabetical sorting method + /// 1 -> 11 -> 2 -> 3 + /// + /// DirsFirst: directories are listed first, alphabetical sorting is also applied + /// 1/ -> 2/ -> 3/ -> 11 -> 12 pub enum SortingMethods { Natural, Alpha, |