Struct broot::tree::TreeOptions
source · pub struct TreeOptions {Show 19 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 show_tree: bool,
pub cols_order: Cols,
pub show_matching_characters_on_path_searches: bool,
}
Expand description
Options defining how the tree should be build and|or displayed
Fields§
§show_selection_mark: bool
§only_folders: bool
§show_counts: bool
§show_dates: bool
§show_sizes: bool
§show_git_file_info: bool
§show_device_id: bool
§show_root_fs: bool
§trim_root: bool
§show_permissions: bool
§respect_git_ignore: bool
§filter_by_git_status: bool
§pattern: InputPattern
§date_time_format: &'static str
§sort: Sort
§show_tree: bool
§cols_order: Cols
§show_matching_characters_on_path_searches: bool
Implementations§
source§impl 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 (but not the default_flags part, which is handled separately)
sourcepub fn apply_launch_args(&mut self, cli_args: &Args)
pub fn apply_launch_args(&mut self, cli_args: &Args)
change tree options according to broot launch arguments
Trait Implementations§
source§impl Clone for TreeOptions
impl Clone for TreeOptions
source§fn clone(&self) -> TreeOptions
fn clone(&self) -> TreeOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl 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§
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> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.