Struct parallel_disk_usage::tree_builder::TreeBuilder[][src]

pub struct TreeBuilder<Path, Name, Data, GetInfo, JoinPath> where
    Path: Send + Sync,
    Name: Send + Sync,
    Data: Size + Send,
    GetInfo: Fn(&Path) -> Info<Name, Data> + Copy + Send + Sync,
    JoinPath: Fn(&Path, &Name) -> Path + Copy + Send + Sync
{ pub path: Path, pub name: Name, pub get_info: GetInfo, pub join_path: JoinPath, }
Expand description

Collection of functions and starting points in order to build a DataTree with From or Into.

Fields

path: Path

Path to the root.

name: Name

Name of the root.

get_info: GetInfo

Function to extract necessary information from path (data and children).

join_path: JoinPath

Function to join parent’s path with a child’s name to make the child’s name.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

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.