paren_balance

Function paren_balance 

Source
fn paren_balance(s: &str) -> i32
Expand description

Count () across s. Byte-accurate for ASCII and conservative for UTF-8 (multibyte chars never collide with the paren ASCII codepoints).