Struct parallel_disk_usage::data_tree::DataTree[][src]

pub struct DataTree<Name, Data: Size> { /* fields omitted */ }
Expand description

Disk usage data of a filesystem tree.

Construction: There are 3 main ways to create a DataTree:

Visualization: Use the Visualizer struct to create an ASCII chart that visualizes DataTree.

Serialization and deserialization: (feature: json) DataTree does not implement Serialize and Deserialize traits directly, instead, it can be converted into/from a Reflection which implements these traits.

Implementations

Create reflection.

Create a tree representation of a directory.

Create a tree representation of a file.

Create a directory constructor of fixed inode size.

Extract name

Get mutable reference to name.

Extract total disk usage

Extract children

Recursively cull all descendants that do not satisfy given predicate, in parallel.

Process the tree via par_retain method.

Recursively cull all descendants whose data are too small relative to root.

Sort all descendants recursively, in parallel.

Process the tree via par_sort_by method.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Create a DataTree from an FsTreeBuilder.

Create a DataTree from a TreeBuilder.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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<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

Apply f to self. Read more

Apply f to &self. Read more

Apply f to &mut self. 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.