untree 0.10.0

untree inverts the action of tree. It allows you to create directory trees from a textual representation of the tree.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Takes a series of expressions returning `Option<T>`, and evaluates each one
/// until finding an expression that returns `Some(item)`
macro_rules! either {
    ($expression:expr) => { $expression };
    ($first:expr, $($second:expr),+) => {
        match $first {
            Some(item) => Some(item),
            None => either!($($second),+)
        }
    }
}

pub(crate) use either;