fn calc_fork_depth(fork_tree: &HashMap<usize, Fork>, id: usize) -> usize {
    let mut height = 0;
    let mut start = fork_tree.get(&id);
    loop {
        if start.is_none() {
            break;
        }
        height += 1;
        start = fork_tree.get(&start.unwrap().base);
    }
    height
}
/// The "height" of this fork. How many forks until it connects to fork 0
The "height" of this fork. How many forks until it connects to fork 0
The " height " of this fork . How many forks until it connects to fork 0
fn calc_fork_depth(fork_tree: &HashMap<usize, Fork>, id: usize) -> usize {
    let mut height = 0;
    let mut start = fork_tree.get(&id);
    loop {
        if start.is_none() {
            break;
        }
        height += 1;
        start = fork_tree.get(&start.unwrap().base);
    }
    height
}
fn calc_fork_depth ( fork_tree : & HashMap < usize , Fork > , id : usize ) -> usize { let mut height = 0 ; let mut start = fork_tree . get ( & id ) ; loop { if start . is_none ( ) { break ; } height += 1 ; start = fork_tree . get ( & start . unwrap ( ) . base ) ; } height }
The "height" of this fork.
The " height " of this fork .
fork_tree
&HashMap<usize, Fork>
id
usize