pub enum GroupByOption {
None,
Folder,
AllFolders,
Extension,
Permissions,
Executable,
NameStartsWith,
NameContains,
NameEndsWith,
}Expand description
Grouping options for file listing.
These options determine how files are grouped in the listing result.
Variants§
None
No grouping, files are listed according to sort order only
Folder
Group directories first, then files
AllFolders
Group all files by their parent directory hierarchy
Extension
Group files by extension (e.g., all .txt files together)
Permissions
Group files by permission type (e.g., readable, writable)
Executable
Group executable files separately from non-executable ones
NameStartsWith
Group files by the first character or pattern in their name
NameContains
Group files based on whether they contain a certain pattern
NameEndsWith
Group files by the last characters in their name
Trait Implementations§
Source§impl Clone for GroupByOption
impl Clone for GroupByOption
Source§fn clone(&self) -> GroupByOption
fn clone(&self) -> GroupByOption
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GroupByOption
impl Debug for GroupByOption
Source§impl PartialEq for GroupByOption
impl PartialEq for GroupByOption
Source§impl ValueEnum for GroupByOption
impl ValueEnum for GroupByOption
impl StructuralPartialEq for GroupByOption
Auto Trait Implementations§
impl Freeze for GroupByOption
impl RefUnwindSafe for GroupByOption
impl Send for GroupByOption
impl Sync for GroupByOption
impl Unpin for GroupByOption
impl UnwindSafe for GroupByOption
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more