Struct broot::tree::TreeOptions[][src]

pub struct TreeOptions {
    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_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,
}

Options defining how the tree should be build and|or displayed

Fields

show_selection_mark: boolshow_hidden: boolonly_folders: boolshow_counts: boolshow_dates: boolshow_sizes: boolshow_git_file_info: boolshow_root_fs: booltrim_root: boolshow_permissions: boolrespect_git_ignore: boolfilter_by_git_status: boolpattern: InputPatterndate_time_format: &'static strsort: Sortcols_order: Cols

Implementations

impl TreeOptions[src]

pub fn without_pattern(&self) -> Self[src]

clone self but without the pattern (if any)

pub fn needs_counts(&self) -> bool[src]

counts must be computed, either for sorting or just for display

pub fn needs_dates(&self) -> bool[src]

dates must be computed, either for sorting or just for display

pub fn needs_sizes(&self) -> bool[src]

sizes must be computed, either for sorting or just for display

pub fn needs_sum(&self) -> bool[src]

pub fn set_date_time_format(&mut self, format: String)[src]

this method does not exist, you saw nothing (at least don’t call it other than with the config, once)

pub fn apply_config(&mut self, config: &Conf) -> Result<(), ConfError>[src]

change tree options according to configuration

pub fn apply_launch_args(&mut self, cli_args: &ArgMatches<'_>)[src]

change tree options according to broot launch arguments

Trait Implementations

impl Clone for TreeOptions[src]

impl Debug for TreeOptions[src]

impl Default for TreeOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,