pub struct Sub<Data, GetData, Report> where
    Data: Size + Into<u64> + Serialize + Send + Sync,
    Report: ParallelReporter<Data> + Sync,
    GetData: Fn(&Metadata) -> Data + Copy + Sync,
    DataTreeReflection<String, Data>: Into<UnitAndTree>, 
{ pub files: Vec<PathBuf>, pub json_output: bool, pub bytes_format: Data::DisplayFormat, pub direction: Direction, pub bar_alignment: BarAlignment, pub column_width_distribution: ColumnWidthDistribution, pub max_depth: NonZeroUsize, pub get_data: GetData, pub reporter: Report, pub min_ratio: Fraction, pub no_sort: bool, }
Expand description

The sub program of the main application.

Fields

files: Vec<PathBuf>

List of files and/or directories.

json_output: bool

Print JSON data instead of an ASCII chart.

bytes_format: Data::DisplayFormat

Format to be used to display the data.

direction: Direction

The direction of the visualization.

bar_alignment: BarAlignment

The alignment of the bars.

column_width_distribution: ColumnWidthDistribution

Distribution and number of characters/blocks can be placed in a line.

max_depth: NonZeroUsize

Maximum number of levels that should be visualized.

get_data: GetData

Returns measured quantity of the files/directories.

reporter: Report

Reports measurement progress.

min_ratio: Fraction

Minimal size proportion required to appear.

no_sort: bool

Preserve order of entries.

Implementations

Run the sub program.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Apply f to self. Read more

Apply f to &self. Read more

Apply f to &mut self. Read more

Apply f to &self where f takes a single parameter of type Param and Self implements trait AsRef<Param>. Read more

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait AsMut<Param>. Read more

Apply f to &self where f takes a single parameter of type Param and Self implements trait Deref<Target = Param>. Read more

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait [DerefMut<Target = Param>]. Read more

Apply f to &self where f takes a single parameter of type Param and Self implements trait Borrow<Param>. Read more

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait BorrowMut<Param>. Read more

Apply f to self. Read more

Apply f to &self. Read more

Apply f to &mut self. Read more

Apply f to &self where f takes a single parameter of type Param and Self implements trait AsRef<Param>. Read more

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait AsMut<Param>. Read more

Apply f to &self where f takes a single parameter of type Param and Self implements trait Deref<Param>. Read more

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait DerefMut<Param>. Read more

Apply f to &self where f takes a single parameter of type Param and Self implements trait Deref<Param>. Read more

Apply f to &mut self where f takes a single parameter of type Param and Self implements trait DerefMut<Param>. Read more

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.