Skip to main content

count_brackets

Function count_brackets 

Source
fn count_brackets(source: &str) -> ((i32, i32, i32), (i32, i32, i32))
Expand description

Count opening and closing brackets in source, respecting strings and comments. Returns ((parens, braces, brackets), (parens, braces, brackets))