pub enum Col {
Mark,
Git,
Branch,
DeviceId,
Permission,
Date,
Size,
Count,
Staged,
Name,
}
Expand description
One of the “columns” of the tree view
Variants§
Mark
selection mark, typically a triangle on the selected line
Git
Git file status
Branch
the branch showing filliation
DeviceId
The filesystem’s device id (unix only)
Permission
file mode and ownership
Date
last modified date
Size
file size, including size bar in sort_by_size mode
Count
number of files in the directory
Staged
marks whether the path is staged (not used for now, may be removed)
Name
name of the file, or subpath if relevant due to filtering mode
Implementations§
source§impl Col
impl Col
sourcepub fn index_in(self, cols: &Cols) -> Option<usize>
pub fn index_in(self, cols: &Cols) -> Option<usize>
return the index of the column among the complete Cols ordered list
sourcepub fn needs_left_margin(self) -> bool
pub fn needs_left_margin(self) -> bool
tell whether this column should have an empty character left
pub fn is_visible(self, tree: &Tree, _app_state: Option<&AppState>) -> bool
Trait Implementations§
impl Copy for Col
impl StructuralPartialEq for Col
Auto Trait Implementations§
impl RefUnwindSafe for Col
impl Send for Col
impl Sync for Col
impl Unpin for Col
impl UnwindSafe for Col
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