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
Fields
path: PathPath to the root.
name: NameName of the root.
get_info: GetInfoFunction to extract necessary information from path (data and children).
join_path: JoinPathFunction to join parent’s path with a child’s name to make the child’s name.
Trait Implementations
impl<Path: Debug, Name: Debug, Data: Debug, GetInfo: Debug, JoinPath: Debug> Debug for 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,
impl<Path: Debug, Name: Debug, Data: Debug, GetInfo: Debug, JoinPath: Debug> Debug for 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,
impl<Path, Name, Data, GetInfo, JoinPath> From<TreeBuilder<Path, Name, Data, GetInfo, JoinPath>> for DataTree<Name, Data> 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,
impl<Path, Name, Data, GetInfo, JoinPath> From<TreeBuilder<Path, Name, Data, GetInfo, JoinPath>> for DataTree<Name, Data> 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,
Create a DataTree from a TreeBuilder.
Auto Trait Implementations
impl<Path, Name, Data, GetInfo, JoinPath> RefUnwindSafe for TreeBuilder<Path, Name, Data, GetInfo, JoinPath> where
GetInfo: RefUnwindSafe,
JoinPath: RefUnwindSafe,
Name: RefUnwindSafe,
Path: RefUnwindSafe,
impl<Path, Name, Data, GetInfo, JoinPath> Send for TreeBuilder<Path, Name, Data, GetInfo, JoinPath>
impl<Path, Name, Data, GetInfo, JoinPath> Sync for TreeBuilder<Path, Name, Data, GetInfo, JoinPath>
impl<Path, Name, Data, GetInfo, JoinPath> Unpin for TreeBuilder<Path, Name, Data, GetInfo, JoinPath> where
GetInfo: Unpin,
JoinPath: Unpin,
Name: Unpin,
Path: Unpin,
impl<Path, Name, Data, GetInfo, JoinPath> UnwindSafe for TreeBuilder<Path, Name, Data, GetInfo, JoinPath> where
GetInfo: UnwindSafe,
JoinPath: UnwindSafe,
Name: UnwindSafe,
Path: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. 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