parallel_disk_usage/tree_builder/
info.rs

1
2
3
4
5
6
7
8
9
10
11
12
use crate::size;
use derive_more::From;
use smart_default::SmartDefault;

/// Information to return from `get_info` of [`super::TreeBuilder`].
#[derive(Debug, SmartDefault, From)]
pub struct Info<Name, Size: size::Size> {
    /// Size associated with given `path`.
    pub size: Size,
    /// Direct descendants of given `path`.
    pub children: Vec<Name>,
}