pub fn nesting_depth_at(source: &str, pos: usize) -> usize
Computes the nesting depth at a given position in source.