#![feature(try_blocks)] pub fn is_valid(code: &str) -> bool { let result: Result = try { code.chars() .filter(|x| !x.i