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

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

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

Fields

show_hidden: boolonly_folders: boolshow_counts: boolshow_dates: boolshow_sizes: boolshow_git_file_info: booltrim_root: boolshow_permissions: boolrespect_git_ignore: boolfilter_by_git_status: boolpattern: InputPatterndate_time_format: &'static strsort: Sort

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(&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> 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.