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
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more