pub enum SortKey {
Name,
Size,
Modified,
}Expand description
Key used to sort files within a pane. Directories are always sorted by name regardless of this setting, since size/modified-time comparisons aren’t meaningful for a directory without a recursive scan.
Variants§
Implementations§
Source§impl SortKey
impl SortKey
pub fn label(self) -> &'static str
Sourcepub fn from_label(label: &str) -> Option<Self>
pub fn from_label(label: &str) -> Option<Self>
The inverse of label, for reading a sort key back out of stored
text. Case-insensitive so a hand-edited config still works, and
None rather than a default for an unknown word, so the caller
decides what an unreadable value should fall back to.
Trait Implementations§
impl Copy for SortKey
impl Eq for SortKey
impl StructuralPartialEq for SortKey
Auto Trait Implementations§
impl Forget for SortKey
impl Freeze for SortKey
impl Move for SortKey
impl RefUnwindSafe for SortKey
impl Send for SortKey
impl Sync for SortKey
impl Unpin for SortKey
impl UnsafeUnpin for SortKey
impl UnwindSafe for SortKey
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.