Struct broot::tree::TreeOptions
source · [−]pub struct TreeOptions {Show 17 fields
pub show_selection_mark: bool,
pub show_hidden: bool,
pub only_folders: bool,
pub show_counts: bool,
pub show_dates: bool,
pub show_sizes: bool,
pub show_git_file_info: bool,
pub show_device_id: bool,
pub show_root_fs: bool,
pub trim_root: bool,
pub show_permissions: bool,
pub respect_git_ignore: bool,
pub filter_by_git_status: bool,
pub pattern: InputPattern,
pub date_time_format: &'static str,
pub sort: Sort,
pub cols_order: Cols,
}Expand description
Options defining how the tree should be build and|or displayed
Fields
show_selection_mark: boolonly_folders: boolshow_counts: boolshow_dates: boolshow_sizes: boolshow_git_file_info: boolshow_device_id: boolshow_root_fs: booltrim_root: boolshow_permissions: boolrespect_git_ignore: boolfilter_by_git_status: boolpattern: InputPatterndate_time_format: &'static strsort: Sortcols_order: ColsImplementations
sourceimpl TreeOptions
impl TreeOptions
sourcepub fn without_pattern(&self) -> Self
pub fn without_pattern(&self) -> Self
clone self but without the pattern (if any)
sourcepub fn needs_counts(&self) -> bool
pub fn needs_counts(&self) -> bool
counts must be computed, either for sorting or just for display
sourcepub fn needs_dates(&self) -> bool
pub fn needs_dates(&self) -> bool
dates must be computed, either for sorting or just for display
sourcepub fn needs_sizes(&self) -> bool
pub fn needs_sizes(&self) -> bool
sizes must be computed, either for sorting or just for display
pub fn needs_sum(&self) -> bool
sourcepub fn set_date_time_format(&mut self, format: String)
pub fn set_date_time_format(&mut self, format: String)
this method does not exist, you saw nothing (at least don’t call it other than with the config, once)
sourcepub fn apply_config(&mut self, config: &Conf) -> Result<(), ConfError>
pub fn apply_config(&mut self, config: &Conf) -> Result<(), ConfError>
change tree options according to configuration
sourcepub fn apply_launch_args(&mut self, cli_args: &ArgMatches<'_>)
pub fn apply_launch_args(&mut self, cli_args: &ArgMatches<'_>)
change tree options according to broot launch arguments
Trait Implementations
sourceimpl Clone for TreeOptions
impl Clone for TreeOptions
sourcefn clone(&self) -> TreeOptions
fn clone(&self) -> TreeOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TreeOptions
impl Debug for TreeOptions
Auto Trait Implementations
impl RefUnwindSafe for TreeOptions
impl Send for TreeOptions
impl Sync for TreeOptions
impl Unpin for TreeOptions
impl UnwindSafe for TreeOptions
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