From 8207a48a612fb6971e0b8fc8924c133e12b2ea36 Mon Sep 17 00:00:00 2001 From: boasting-squirrel Date: Fri, 15 Feb 2019 07:28:47 +0100 Subject: Added docstrings to SortingMethods enum --- src/listing.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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, -- cgit v1.2.3