pub enum SortBy {
Name,
Type,
Extension,
Size,
Modified,
}Expand description
Sort keys for file list
Variants§
Name
Sort by file or directory name
Type
Sort by IGFD-style “Type” (filter-aware extension).
This mimics ImGuiFileDialog’s “Type” column semantics: for multi-dot
filenames like archive.tar.gz, the visible/sortable “Type” depends on
the currently active filter (e.g. .gz vs .tar.gz).
Notes:
- Directory entries have an empty type string.
- When “All files” is selected (no active filter), the dot depth
defaults to 1 (e.g.
.gz).
Extension
Sort by full extension (multi-layer aware, e.g. .tar.gz)
Size
Sort by file size (directories first)
Modified
Sort by last modified time
Trait Implementations§
impl Copy for SortBy
impl Eq for SortBy
impl StructuralPartialEq for SortBy
Auto Trait Implementations§
impl Freeze for SortBy
impl RefUnwindSafe for SortBy
impl Send for SortBy
impl Sync for SortBy
impl Unpin for SortBy
impl UnsafeUnpin for SortBy
impl UnwindSafe for SortBy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.