parallel-disk-usage 0.6.1

Highly parallelized, blazing fast directory tree analyzer
Documentation
/// The direction of the visualization of the tree.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Direction {
    /// The root of the tree is placed at the bottom of the visualization.
    BottomUp,
    /// The root of the tree is placed at the top of the visualization.
    TopDown,
}

impl Direction {
    #[cfg(feature = "cli")]
    pub(crate) const fn from_top_down(top_down: bool) -> Self {
        if top_down {
            Direction::TopDown
        } else {
            Direction::BottomUp
        }
    }
}